Ask Question, Ask an Expert


Ask Java Expert

Home >> Java

This assignment has four parts:

1) Obtaining the new script: Download and save the attached comment CGI mailer script 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 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: username@somewhere.something)
• 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 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

Programming assignment - summer semester 2015-purpose-to

Programming Assignment - Summer Semester 2015- Purpose- To provide students with the opportunity to apply the knowledge acquired and skills developed. These include understanding of primitive data types and the concept o ...

Java programmingnow that your survey class has been

Java programming Now that your Survey class has been implemented, it is time to implement the SurveyConductor application class. This class uses the Survey class to conduct a survey. First, create pseudocode to develop t ...

Java programmingyou have been asked by your manager to

Java programming You have been asked by your manager to create a user-friendly application that will present a survey to your customers. The application will compile and analyze the results entered by the survey responde ...

As we have discussed in class section 41 of our text

As we have discussed in class, section 4.1 of our text develops a List ADT and then offers two different implementations of it in the classes AList and LList. The ADT is defined in a Java interface file, and bo ...

Topic java part a airline seatingmillions of commercial

Topic: Java Part A: Airline seating Millions of commercial airline flights cross the world's cities every year, and each one of these flights must solve what seems like a simple problem: how do you arrange where each pas ...

Instructionsi what are the diagrams defined in the uml

Instructions I. What are the diagrams defined in the UML Standard. Give a one or two sentence description of each one. II. Given the following code, how should the toString methods in the classes H2ClassA and H2ClassB be ...

Student class and driverthis student class will be the data

"Student Class and Driver" This Student Class will be the data that will be used for each of the projects assigned and graded this semester. Your Student Class will consist of: Student Attributes: First Name Last Name ID ...

Assignmentupload your completed assignment to the

Assignment Upload your completed assignment to the Assignment 2 link on the course home page for marking and tutor feedback. Be sure to complete the final step-click on the Send for Marking button to notify your tutor. P ...

Question 1 illustrate that the nodes of any avl tree t can

Question 1. Illustrate that the nodes of any AVL tree T can be colored "red" and "black" so that T becomes a red-black tree. Question 2. Illustrate that via AVL single rotation, any binary search tree T1 can be transform ...

Part 1 text readingchapter 3 chapter 4 part 2 textbook

Part 1. Text reading Chapter 3, Chapter 4 Part 2 . Textbook questions Chapter 3. Describe why an application developer might choose to run over TCP rather than UDP. Suppose host A is sending host B a large file over a TC ...

  • 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

A cola-dispensing machine is set to dispense 9 ounces of

A cola-dispensing machine is set to dispense 9 ounces of cola per cup, with a standard deviation of 1.0 ounce. The manuf

What is marketingbullwhat is marketing think back to your

What is Marketing? • "What is marketing"? Think back to your impressions before you started this class versus how you

Question -your client david smith runs a small it

QUESTION - Your client, David Smith runs a small IT consulting business specialising in computer software and techno

Inspection of a random sample of 22 aircraft showed that 15

Inspection of a random sample of 22 aircraft showed that 15 needed repairs to fix a wiring problem that might compromise

Effective hrmquestionhow can an effective hrm system help

Effective HRM Question How can an effective HRM system help facilitate the achievement of an organization's strate