1obtaining the new script download and save the attached

Assignment Help JAVA Programming
Reference no: EM13370576

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: EM13370576

Questions Cloud

1 in each of the following types of growth how is the rate : 1. in each of the following types of growth how is the rate of growth dndt influenced by the population size n?
Question 1 the heliconius butterflies are a classic example : question 1 the heliconius butterflies are a classic example of muumlllerian mimicry. which of the following defines a
1 you have decided to invest in a portfolio that includes : 1. you have decided to invest in a portfolio that includes all companies in the dow jones industrials index. a list of
Readings regarding whether artefacts have politics and : readings regarding whether artefacts have politics and whether the machines can make history. read these two papers and
1obtaining the new script download and save the attached : 1.obtaining the new script download and save the attached comment cgi mailer script form-mail.pl to your servers
Project1 install mysql dbms and dblanguage connector : project1. install mysql dbms and dblanguage connector software on your machine2. create world database using mysql
Thread problem the eaters must give their dishes to the : thread problem the eaters must give their dishes to the dishwasher by putting them on a conveyor belt that has a
A screening test for a newly discovered disease is being : a screening test for a newly discovered disease is being evaluated. in order to determine the effectiveness of the new
Case - cost strcture and pricing sting ray poolvac inc : case - cost strcture and pricing sting ray poolvac inc. manufactures and sells a single product called the sting

Reviews

Write a Review

JAVA Programming Questions & Answers

  File integrity checker - tripwire

Write a program that will perform some of the basic tasks accomplished by a file integrity checker such as Tripwire.

  Application named arithmeticmethods

Create an application named ArithmeticMethods whose main() method holds two integer variables. Assign values to the variables. In turn, pass each value to methods named displayNumberPlus10()

  Class should have a method that returns the average

Write a class named TestScores. The class constructor should accept an array of test scores as its arguments. The class should have a method that returns the average of the test scores.

  Write a program using bucket sort idea to create histograms

The input data are in an external file named election.txt. The first line is an integer N representing the number of candidates. The next N lines are the names of the canditates.

  Lambert''s vacation rentals

Write an application for Lambert's Vacation Rentals. Use separate ButtonGroups to allow a client to select one of three locations, the number of bedrooms

  Write a statement that writes both of their values

Given an interger variable i and floating-point variable f, write a statement that writes both of their values to standard output in the following format: i=value-of-i f=value-of-f.

  Client server chat system

Threading and GUI design using Java's network library, threading system, and swing user interlace libraries to implement a basic chat client and saver system. Thc system will allow multiple. remote users to send and receive messages across the net..

  Create an array of date objects

Create an array of Date objects of size 4. Initialize the array by using a loop. In the loop, use the Scanner.nextLine() method to input a date as a string, convert it to a date by using the toDate() method, and assign the result to an element in ..

  Design and implementation of a hangman game

Design and Implementation of a Hangman game

  Tracer for java

Implementation of a tracer of Java objects and the tracer can be invoked from any point of a Java program, accepting an object as argument.

  Each purchase contains an invoice number amount of sale

Create a class named Purchase. Each Purchase contains an invoice number, amount of sale, and amount of sales tax. Include set methods for the invoice number and sale amount.

  Three most primary forms of loops: the while loop, the do..

explored the world of loops we have accepted the three most primary forms of loops: the while loop, the do...while loop (even though Python does not use this loop), and the for loop. The for loop has approximately three primary implementations that w..

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