This assignment introduces you to the perl language and cgi


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

Request for Solution File

Ask an Expert for Answer!!
Programming Languages: This assignment introduces you to the perl language and cgi
Reference No:- TGS01585956

Expected delivery within 24 Hours