Javascript validation, JAVA Programming

Assignment Help:

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: [email protected])

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.


Related Discussions:- Javascript validation

Interface, Interface to calculate carbon foot print

Interface to calculate carbon foot print

I want to develop a chat application for j2me, I want to develop a Chat app...

I want to develop a Chat application for j2me Project Description: We require a chat application for a community website. Skills required: Java, J2ME

Compiler Design - Limit the loops, Problem : Compiler Design - Limit the lo...

Problem : Compiler Design - Limit the loops Rajni is a newbie to the programming and while learning the programming language he came to know the following rules: ???• Each

Prepare a program that can solve ocr captcha, Prepare a Program that can so...

Prepare a Program that can solve OCR Captcha Project Description: I'm seeking someone to develop a program that can solve a php captcha. It should be a web service or scri

Define the life cycle methods of a servlet? , The Web container is used for...

The Web container is used for managing the servlet's life cycle. The Web container produces an instance of the servlet and then the container invokes the init() function. At the co

Virtual function, What is virtual function? While derived class override...

What is virtual function? While derived class overrides the base class method by redefining the same function, after that if client wants to access redefined the method from der

What is the point-to-point model in jms, A point-to-point model is based on...

A point-to-point model is based on the concept of a message queue: Senders send messages into the queue, and the receiver reads messages from this queue. In the point-to-point mode

How can you performance tune your database?, 1. De normalizes your tables w...

1. De normalizes your tables where required. 2. Proper use of index columns: An index based on numeric parts is more efficient than an index based on character columns. 3. Re

Develop the back end of a calculator application, For this assignment, you ...

For this assignment, you will develop the back end of a calculator application. The GUI (graphical user interface) has been provided by your instructor. The application will requir

What will be the output of given program, What will be the output of this p...

What will be the output of this programme? Write comments where you find "//" symbol in the following code? function doSomething() { // 1 setTimeout('doSomething()',10000

Write Your Message!

Captcha
Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd