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

  Program to processes the test data

Write a program that processes the test data. The output should be the student's ID, followed by the answers, followed by the test score, and followed by the test grade.

  Write application for university admissions office

Write an application for a university admissions office. Prompt the user for a student's High School Grade Point (for example 3.2) and an admission test score (value from 0 to 100).

  Program that will first ask the number of overs each team

The program will also display the winning team and the result. That is, if Team A wins then it will display the result in terms of runs. For example, Team A wins by 54 runs, which is the difference between the total runs scored by the teams. Howev..

  Create and save a document named design plan pdf

Use the document formatting outlined in the syllabus and create a heading called Design Plan

  Draw a erd model a manufacturing company

Draw a ERD model A manufacturing company has several assembly plants in different cities. Each plant produces one product which requires certain parts in its assembly.

  Write program which prompts user to enter length in feet

Create and execute the program for this exercise. Write down the program which prompts user to enter length in feet and inches and outputs equivalent length in centimeters.

  Create a windows application and design document

create a complete C# Windows application and design documents based on the following specifications and instructions.

  Program that checks whether two given strings are circular

Detecting this condition is important in the study of genomic sequences. Write a program that checks whether two given strings s and t are circular

  Design program to ecode message using caesar cypher

Design a program which decodes messages. Messages will be encoded using Caesar cypher, with each letter being decoded by replacing it with previous letter in alphabet.

  Program to display the bonus

product receives a 5% bonus, otherwise, he receives a 4% bonus. Display the bonus, formatted with a dollar sign and two decimal places, in the bonusLabel.

  Design and implement a user interface in c#

Test the program and provide a list of comprehensive test cases used to validate the application and include these test cases in a word document containing all UML class diagram and descriptions. The test data can be shown in a table that includes..

  Write a program that calculates a customer monthly bill

Write a program that calculates a customer's monthly bill. It should ask the user to enter the letter of the package the customer has purchased (A, B, or C) and the number of hours that were used. It should the display the total charges

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