Build a perl program that will gather user input

Assignment Help Programming Languages
Reference no: EM131203806

This assignment introduces you to the Perl language and CGI programming. You will use your scripting and html skills to build a Perl program that will gather user input to then generate a personal webpage. This program will demonstrate a typical dynamic Web site which is able to respond to user requests and record user actions.

Program Operation

1. Modify index.html to your home page. Create three links assignment 1 and assignment 2 on the home page. Let assignment 1 link to your /public_html/cgi-bin/assn1/auth.pl

2. When the user clicks on assignment 1 link, auth.pl will show an html form with two text fields:

Username:

Password:

3. Have the form submit auth.pl itself (action attribute calls auth.pl). The program will validate the two fields. If the username is "username" and the password is "password", then the login is successful. For the successful login, the program will display a welcome page, otherwise the program will display the same auth.pl login form with an error message "Login error. Please log in again." at the top.

4. The welcome page will display as below.

Please complete the form below to view your user profile:

Username:

First name:

Last name:

Birth date:

Country:

Street Add: City:

State / Prov:

ZIP / Postal

Home:

Mobile:

Email: (MM/DD/YYYY)

About me:

5. When the user clicks on Submit, a program viewprofile.cgi gets called. The program gathers the information above and displays a profile based on that input.

General Requirements

- The password field type must be a password

- The dropdown select box must be with populated with the country name.

- This assignment must work on zenit.senecac.on.ca server.

- All Perl code must be kept in one directory /public_htmlfcgi-binfassnlf

- All uploaded images must be kept in one directory /public_htmlfcgi-binfassnl /images

- The Perl code must be concise (avoiding unnecessary duplication of code). For example, the html code for the form should not appear twice in your program.

- Presentation is important. The general quality of your work is important. Correct spelling, neatness and appearance of your code and its output will be taken into consideration during marking.

Submission

The submission of this assignment is a hardcopy. Print your complete code and the screenshots of your testing. Staple the pages with a cover page listing your student name, student number, completion date and the URL to view your assignment online.

Marking System

- Meet all points in General Requirements and Program Operation

- Testing all use cases of General Requirements and Program Operation onto screenshots

Reference no: EM131203806

Questions Cloud

Week on the horizontal axis : Considering Pat and Kris jointly as one "nation," draw the PPF for this nation, with pizzas per week on the vertical axis and gallons of beer per week on the horizontal axis.
Write equations necessary to solve for the branch currents : Write the equations necessary to solve for the branch currents. - By substitution of Kirchhoff's current law, reduce the set to three equations.
Short-run trade-off between inflation and unemployment : Evaluate why policymakers face a short-run trade-off between inflation and unemployment.
Reduce the starting current drawn by an induction motor : How would the starting current of the Y-connected motor compare to the starting current if the motor remained in a D-connection during starting?
Build a perl program that will gather user input : This assignment introduces you to the Perl language and CGI programming. You will use your scripting and html skills to build a Perl program that will gather user input to then generate a personal webpage.
What is the elasticity of health expenditure per capita : a) According to this graph, what is the elasticity of health expenditure per capita with respect to income per capita? b) According to the terminology in the notes, what type of good does health care seem to be?
Prepare combined single-step income statement : Jackson Company had the following income statement amounts for the year ended December 31, 2007: Prepare a combined single-step income statement and retained earnings for the year ended December 31, 2007.
Advise rebecca about commercial law : BUS107 Commercial Law Assignment. Two friends, Rebecca and Michelle, attended a performance called ‘An Evening with Oprah' with Oprah Winfrey. Advise Rebecca
Determining the price elasticity of demand : a) What is the price elasticity of demand when the daily fee is $30? b) What is the price elasticity of demand when the daily fee is $40? c) What is the elasticity of demand at the price that maximizes total revenue?

Reviews

Write a Review

Programming Languages Questions & Answers

  Create and link the tables for the inventory model

create and link the tables for the inventory model from inventory systems below:

  Design gui application with jframe to enter series of names

Design  GUI application with JFrame which permits user to enter series of friends' names and phone numbers. Each time user clicks the button, data entered must be written to sequential access file.

  Develop a form using jsp that collects client body statistic

Develop a form using JavaScript that collects client body statistics and customer contact information for record keeping and marketing purposes.

  Sql query that uses union of the two tables

Write a SQL query that uses UNION of the two tables to produce a combined result set.

  Create a simple command line program

Create a simple command line program that simulates the rolling of a pair of six sided dice a user given number of times. The number of times to roll the pair of dice should be read as input from the argv array on the command line.

  View and change sas system options

View and change SAS system options. Justification date orientation, ect

  Write program to enter name-number of planet from sun

Write down the program which permits the user to enter name of planet, and then prints message stating that planet's number when counted outward from sun.

  Write a class to accepts no parameters and returns no value

Write class named ParkingMeter containing:A method named tick that accepts no parameters and returns no value. tick decreases value of timeLeft by 1, but only if value of timeLeft is greater than 0.

  Write a program to solve to find loan on tv

Write a program to solve follwoing problem: A TV set is bought with loan of $563 to be paid off with 5 monthly payments of $116. Interest rate is 1 percent per month.

  What mistakes did the designer make when designing it

What won't users be able to do with this file, given the way in which it's designed?

  This laboratory gives practice in the creation and use of

this laboratory provides practice in the creation and use of basic and advanced sql queries involving more than one

  Use input dialogs to get data from user

Print the combined miles per gallon obtained for all tankfuls up to this point. All average calculations must produce floating-point results. Use input dialogs to get the data from user.

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