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

  Write a haskell program to calculates a balanced partition

Write a program in Haskell which calculates a balanced partition of N items where each item has a value between 0 and K such that the difference b/w the sum of the values of first partition,

  Create an application to run in the amazon ec2 service

In this project you will create an application to run in the Amazon EC2 service and you will also create a client that can run on local machine and access your application.

  Explain the process to develop a web page locally

Explain the process to develop a Web page locally

  Write functions

These 14 questions covers java class, Array, link list , generic class.

  Programming assignment

If the user wants to read the input from a file, then the output will also go into a different file . If the user wants to read the input interactively, then the output will go to the screen .

  Write a prolog program using swi proglog

Write a Prolog program using swi proglog

  Create a custom application using eclipse

Create a custom Application Using Eclipse Android Development

  Create a application using the mvc architecture

create a application using the MVC architecture. No scripting elements are allowed in JSP pages.

  Develops bespoke solutions for the rubber industry

Develops bespoke solutions for the rubber industry

  Design a program that models the worms behavior

Design a program that models the worm's behavior.

  Writing a class

Build a class for a type called Fraction

  Design a program that assigns seats on an airplane

Write a program that allows an instructor to keep a grade book and also design and implement a program that assigns seats on an airplane.

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