Ask Java Expert


Home >> Java

This assignment has four parts:

1) Obtaining the new script: Download and save the attached comment CGI mailer script form-mail2.pl to your server's cgi-bin directory, and change the permissions on the script to make it executable (not writable). You require not know how it works complete the next step; though, as a Perl CGI script you may be interested in seeing what it does.

2) Setting up the form page: In this portion, you will make a form interface to the CGI program which will accept comments on your web site, and also some information regarding the sender and send them to you through email. Make the form interface in a file called mailer.html. The form must include some brief instructions and a request for comments.

Comprise the given input elements:

• The form used for gathering the input consists of a NAME parameter set to user comments.
• The form uses the POST method and references the script termed form-mail2.pl on your server for the action.
• The form comprises some brief instructions and a request for the comments.
• The form comprises the given input elements:
• A text box, termed realname for the person's name.
• A text box, termed email for the person's email address.
• A text area termed message for the comments. Make this a bit bigger than the default size.
• A group of at least 3 radio buttons termed rating with a rating scale of your choosing for your website.
• A text box termed phone for the person's phone number.
• A text box termed bday for the person's birthday.

Make sure that the input elements are organized in a clear and usable fashion, and make sure that the function of each input element is evidently recognized.

3) JavaScript validation: In this portion, you will add JavaScript validation to the fields on the form. You can base your validation routines on any form validation on the Internet. There is a lot out there already written and there is no requirement to reinvent the wheel. Though, make sure you give credit. The given validations must be checked both when the value of the field changes (onChange) and before the form can be submitted (onSubmit). If a field doesn’t validate, a suitable message must be displayed on the webpage (not in an alert) and the focus and select must be set to the offending field.

• realname (should be non-blank, must start with a capital letter, and should contain at least one vowel and one consonant)
• email (email format: [email protected])
• message (must be non-blank)
• phone (telephone format: (###) ###-#### ), however do not permit extra parentheses, spaces, or dashes within the phone number.
• bday (date format: MM/DD/YY)

4) Adding a SSI footer: In this portion, you will add a header, by using SSI (server side comprises), to the mailer page.  Re-name your mailer.html file to mailer.shtml, so that the server will check for includes. Include any prior HTML file at the TOP of your file (See http://httpd.apache.org/docs/2.2/howto/ssi.html if you are unsure how to do this). Comprise an SSI command to display the "last modified" date of the mailer.html file.

Java, Programming

  • Category:- Java
  • Reference No.:- M91024

Have any Question?


Related Questions in Java

Chatbotscreate a small networked chat application that is

Chatbots Create a small, networked chat application that is populated by bots. Introduction On an old server park, filled with applications from the early days of the internet, a few servers still run one of the earliest ...

Assignment taskwrite a java console application that allows

Assignment task Write a java console application that allows the user to read, validate, store, display, sort and search data such as flight departure city (String), flight number (integer), flight distance (integer), fl ...

Assignment game prototypeoverviewfor this assessment task

Assignment: Game Prototype Overview For this assessment task you are expected to construct a prototype level/area as a "proof of concept" for the game that you have designed in Assignment 1. The prototype should function ...

Assignment taskwrite a java console application that allows

Assignment task Write a java console application that allows the user to read, validate, store, display, sort and search data such as flight departure city (String), flight number (integer), flight distance (integer), fl ...

In relation to javaa what is constructor the purpose of

(In relation to Java) A. What is constructor? the purpose of default constructor? B. How do you get a copy of the object but not the reference of the object? C. What are static variables and instance variables? D. Compar ...

Project descriptionwrite a java program to traverse a

Project Description: Write a java program to traverse a directory structure (DirWalker.java) of csv files that contain csv files with customer info. A simple sample in provided in with the sample code but you MUST will r ...

Fundamentals of operating systems and java

Fundamentals of Operating Systems and Java Programming Purpose of the assessment (with ULO Mapping) This assignment assesses the following Unit Learning Outcomes; students should be able to demonstrate their achievements ...

Assessment -java program using array of Assessment -JAVA Program using array of objects

Assessment -JAVA Program using array of objects Objectives This assessment item relates to the course learning outcomes as stated in the Unit Profile. Details For this assignment, you are required to develop a Windowed G ...

Applied software engineering assignment 1 -learning

Applied Software Engineering Assignment 1 - Learning outcomes - 1. Understand the notion of software engineering and why it is important. 2. Analyse the risk factors associated with phases of the software development lif ...

Retail price calculatorwrite a java program that asks the

Retail Price Calculator Write a JAVA program that asks the user to enter an item's wholesale cost and its markup percentage. It should then display the item's retail price. For example: (If an item's wholesale cost is 5. ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As