Make a form interface to the cgi program


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 https://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.

Request for Solution File

Ask an Expert for Answer!!
JAVA Programming: Make a form interface to the cgi program
Reference No:- TGS01024

Expected delivery within 24 Hours