Create a form interface to the cgi program that will accept

Assignment Help Web Project
Reference no: EM131174970

JAVASCRIPT VALIDATION INSTRUCTIONS

This assignment has 4 parts:

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:

• 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 any previous HTML file at the TOP of your file (See https://httpd.apache.org/docs/2.2/howto/ssi.html if you are unsure how to do this). Include an SSI command to display the "last modified" date of the mailer.html file.

To submit this assignment, put your name and a link to your web application in an html page and upload it to BlackBoard.

Reference no: EM131174970

Questions Cloud

Research in regards to switzerland : Global Entrepreneurship Assessment Items for Semester Research in regards to switzerland.
What kind of strategy would recommend for xiaomis expansion : What kind of strategy would you recommend for Xiaomi's international expansion? Would you recommend product standardization or localization?
How did the power of standard oil change society : With reference to the seven levels of corporate power addressed in the text, how did the power of Standard Oil change society? Was the power exercised in keeping with the social contract of Rockefeller's era?
Calculate fred net capital gain for the current year : HI6028 Taxation, Theory, Practice & Law ASSIGNMENT. Calculate Fred's net capital gain for the current year. Assume he also has a net capital loss from last year of $10,000 arising from the sale of shares
Create a form interface to the cgi program that will accept : 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 b..
Arrangement of standards that advised our administration : The Constitution was another arrangement of standards that advised our administration how to function. Standards and laws individuals coexist with each other.
What is the ultimate goal of the criminal : Develop a fact pattern where this person commits their ultimate crime. Walk us through the steps of the crime: how is it carried out, upon whom is it carried out, and what is the ultimate goal of the criminal?
Cash flow from financing activities totaled : W.C. Cycling had $72,000 of cash at year-end 2011 and $18,000 in cash at year-end 2012. The firm invested in property, plant, and equipment totaling $290,000. Cash flow from financing activities totaled +$190,000. If accruals increased by $25,000, re..
Describe the method rationale for using a questionnaire : Provide clear directions for taking and submitting the questionnaire within a specified time range. Inform the participants that the responses will be confidential and will be used in aggregate form.

Reviews

Write a Review

Web Project Questions & Answers

  Prepaqre a website about a electronic perfume

Prepaqre a website about a electronic perfume. What goals you want to accomplish with the site? What you will including that will make your site unique?

  Explain how changes are documented and submitted

Explain how changes are documented and submitted in the change control management plan keeping in mind the factors such as roles and responsibilities related to the project

  Define the design and layout

The final project is a web site. You can choose any appropriate topic of the website.  Writing a proposal keep in mind the following requirements for the final project

  Create a new web application that displays a form

Create a new Web application titled Week8. Next, create a JSP that displays a form when the doGet method is invoked. The form will contain a post action that directs the form post back to the same JSP, which in the doPost method will save the form..

  Create an android app to store and display images

Create an Android app to store and display images with commentary and tags. The app should have the following features and functions: Allow a user to add images to the app

  Web based scams

Web phishing, pharming and vishing are popular web based scams. Talk about currently used tools and recommended measures to defeat this kind of attacks efficiently?

  Execute the code and find the values

Please Enter items purchased with price of each Item: Price, Item: Price

  System development life cycle

As part of your job, you must complete a 10-to-15 page paper that follows this project through the system development life cycle (SDLC). This assignment will require you to do the following: Discuss what it will take to build a Web architecture, mo..

  Evaluate the user dialog strategies used by a menu-driven

Evaluate the user dialog strategies used by a menu-driven interface. Determine why menu-driven interfaces continue to be popular in the modern computing age.

  Creating a database that would sit behind such a site

creating a database that would sit behind such a site with the requirements being presented below. For your database, you will need to create all of the entities, attributes, and relationships necessary for your fake application, called myFlicks.c..

  The websites of for-profit and non-profit organizations

Conduct a search to find a leader in health care. As an idea, you might explore the websites of for-profit and non-profit organizations and find the bios of their CEOs. Select a leader in health care to further examine.

  Design a site that explains implementation plan

Design an application or site that presents and explains your Implementation Plan. The site must include all sections of the plan and related content and consist of multiple web pages. Ensure there is an index or some type of introductory text doc..

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