Javascript validation - cgi program

Assignment Help JAVA Programming
Reference no: EM1375661

1. Obtaining the new script: Download and save the attached comment CGI mailer script form-mail.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:
• The form used for gathering the input has a NAME parameter set to usercomments.
• The form uses the POST method and references the script called form-mail2.pl on your server for the action.
• The form includes some brief instructions and a request for comments.
• The form includes the following input elements:
• A text box, called realname for the person's name.
• A text box, called email for the person's email address.
• A text area called message for the comments. Make this a bit larger than the default size.
• A group of at least 3 radio buttons called rating with a rating scale of your choosing for your web site.
• A text box called phone for the person's phone number.
• 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.
• realname (must be non-blank, must begin with a capital letter, and must contain at least one vowel and one consonant)
• email (email format: [email protected])
• message (must be non-blank)
• phone (telephone format: (###) ###-#### ), but do not allow extra parentheses, spaces, or dashes within the phone number.
• 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. Re-name your mailer.html file to mailer.shtml, so that the server will check for includes. Include an SSI command to display the "last modified" date of the mailer.html file.

Download:- JAVA Programming.zip

Reference no: EM1375661

Questions Cloud

International trade protectionism for developing nations : A big level of international trade protectionism is required if developing nations are going to be able to industrialize and develop their own domestic industries in face of fierce foreign competition.
Discussion on economics : Discuss why will voluntary actions, undertaken at individual level, be unlikely to bring about significant decrease in greenhouse gases such as CO(2)?
Budget deficits and debt principle : Taking business personally, Recognize some policy change that you propose to decrease the federal government budget deficits and debt.
Implications of a trade surplus : Japan has had an overall trade surplus in current years. Economists advice that this continuing phenomenon is due to many things, including an inappropriate exchange rate
Javascript validation - cgi program : CGI mailer script form-mail.pl to your server's cgi-bin directory, and change the permissions on the script to make it executable - BMIS 310
Discussion on market structure : Below you will get a list of well known firms and items that they sell. Select one and discuss and describe which of 4-types of markets best characterizes market in which they can compete.
A monopolist : It has been discussed that a nation to international trade is a great antitrust policy. Determine what impact would threat of imports have on a monopolist who had never before been faced in foreign competition?
Predict the change of the exchange rate : The Economist reports that the interest rate per year is 5.93 percent in the United States and 70.00 percent in the Turkey,in the October 23, 1999 issue.
Events related to wage inequality : Examine how wage inequality is measured and if it present in your selected industry. My Selected industry is the automotive industry.

Reviews

Write a Review

JAVA Programming Questions & Answers

  Java program simulate a network

Java program simulate a network

  Write java program to enter number of marks

Write a java program called AverageMark.java. This program should allow the user to enter any number of marks and then display the minimum, maximum & average mark.

  Modeling the caves

Assignment 2 Description:  You are a mighty warrior, and armed with your trusty bow and 3 arrows, you enter The Caves in search of the mighty Wumpus. If you shoot the Wumpus, you are victorious and the masses will praise you, but if you stumble upon ..

  Create classes implement java interface

Interface that contains a generic type. Create two classes that implement this interface.

  Input pairs of natural numbers

Java program to input pairs of natural numbers.

  Write function in javascript to compute person-s gross pay

Write the function using JavaScript syntax to compute a person's gross pay for a week. The function should receive the number of hours worked and the rate of pay per hour.

  Implement simple java program to input syllabus grades

To implement simple Java program to input (hypothetical) syllabus grades, computing and displaying both normal Mean and Harmonic Mean.

  Determine the decision of java

Determine the decision of Java as the platform to develop this program. Identify the Java-based technologies utilized in this project and analyze each of them. Then, provide discussion on the purpose of each of the Java-based technologies utiliz..

  Write java program to receive input and displayed interest

Write a Java program that receive some input and displayed the interest. Format the number into 2 decimal places. Using loop is an advantage.

  World data app

Prepare WorldDataApp project. It implements the NameIndex portion, including creating it in SetupProgram, and searching, viewing and updating it in UserApp program.

  Compute area and perimeter of a polygon

Create a project that would let a user compute area and perimeter of a polygon

  Write java program using array list object

Write a java program (using eclipse) using ArrayList object to allow the professor to enter student's name, his or her's four test scores.

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