javascript validarion, JAVA Programming

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 need not know how it works complete the next step; however, as a Perl CGI script you may be interested in seeing what it does.

2. Setting up the form page: In this part, you will create a form interface to the CGI program that will accept comments on your web site, as well as some information about the sender and send them to you via email. Create the form interface in a file called mailer.html. The form should include some brief instructions and a request for comments. Include the following input elements:

o The form used for gathering the input has a NAME parameter set to usercomments.

o The form uses the POST method and references the a script called form-mail2.pl on your server for the action.

o The form includes some brief instructions and a request for comments.

o The form includes the following input elements:

o A text box, called realname for the person''s name.

o A text box, called email for the person''s email address.

o A text area called message for the comments. Make this a bit larger than the default size.

o A group of at least 3 radio buttons called rating with a rating scale of your choosing for your web site.

o A text box called phone for the person''s phone number.

o A text box called 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 clearly identified.

3. JavaScript validation: In this part, 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 need to reinvent the wheel. However, make sure you give credit. The following validations should be checked both when the value of the field changes (onChange) and before the form can be submitted (onSubmit). If a field does not validate, an appropriate message should be displayed on the webpage (not in an alert), and the focus and select should be set to the offending field.

o realname (must be non-blank, must begin with a capital letter, and must contain at least one vowel and one consonant)

o email (email format: )

o message (must be non-blank)

o phone (telephone format: (###) ###-#### ), but do not allow extra parentheses, spaces, or dashes within the phone number.

o bday (date format: MM/DD/YY)

4. Adding a SSI footer: In this part, you will add a header, using SSI (server side includes), to the mailer page.

o Re-name your mailer.html file to mailer.shtml, so that the server will check for includes.

o Include any previous HTML file at the TOP of your file

o Include an SSI command to display the "last modified" date of the mailer.html file.
Posted Date: 2/15/2014 8:03:27 AM | Location : United States







Related Discussions:- javascript validarion, Assignment Help, Ask Question on javascript validarion, Get Answer, Expert's Help, javascript validarion Discussions

Write discussion on javascript validarion
Your posts are moderated
Related Questions
Java Server Page is a standard Java extension that is described on top of the servlet Extensions. The goal of JSP is the simplified formation and management of dynamic Web pages. J

What is a variable in Java program? It's a memory location. Memory location is given some name. Memory location is being assigned some value. Value may change o

How can I improve the performance of a java application , describe the java optimization techniques?

I want ProSport Savings Plans Project Description: To prepare an application on iPhone, Mac, iPad and Android, which does the subsequent:- Provides a calculation of the am

What is the purpose to use the enableEvents() method?

Create a class HourlyWorker mind: particularHourlyWorker employee. • Declare two data members named wage and hours of double type with private access. • Implement a parameterized c

There are two different types of data in a JSP page. 1. Static part which occurs copied directly to the response by the JSP Engine. 2. Dynamic part, which have anything that

what is an Interface?

Question : a) There are up to 14 different built-in groups that might be located by default in the Builtin container including "Account Operators", "Incoming Forest Trust Bui

A Java package is a naming context for classes and interfaces. A package is used to make a separate name space for groups of classes and interfaces. Packages are also used to arran