[Enter] [Course Objectives] [Schedule] [Text] [Grading] [Project]

Lab #2b: Server Side: Perl CGI

Objectives

  1. Describe Client/Server issues & HTTP
  2. Write Perl CGI programs

Background Material

-1. Getting Started in Perl CGI

0. Sort of Gentle Perl CGI

1. Text: Chapter 10 [PDF](Chapter 5 in Old Book)

2. CGI and HTTP definitions [PDF]

3a. Bill Grotsky's cgi slides [PDF]

3b. Bill Grotsky's HTTP slides [PDF]

3c. Bill Grotsky's cgi scripts slides [PDF]

4. CGI 101

5. Book and other examples and notes Note: You cannot run the cgi from here; you'll have to cut and paste them into your cgi-bin directory.

6. WPI rules for cgi

Assignment

1. (3 points) Using HTML, Perl CGI and Javascript, create a form for your audience analysis which contains at least 1 javascript pop-up window (say, if they fill out the form incorrectly in some way), send it out and have your potential audience start replying to you. Begin to analyze results as they come in. Be sure to get the form out as soon as it is done and nag your responders. You'll need their results for lab 4! Graphs are nice (but not required). You needn't include this feedback for this week.

2) (1 point) Write Perl CGI code to output a web page summary of your results (e.g., 15 people responded, etc.) See http://www.cgi101.com/class/ch6/text.html for an example which does this.

An extra 0.5 points for those of you who write a program to show the results graphically

Note You are not showing the real survey results in this lab - you'll do it for lab #4 when you will have gotten back some data. You are showing your forms and some dummy data (if necessary) that show how your programs work.

Upload a link to these forms. In lab 4 you will show the results you received and write your project proposal.

2. (1 point) Continue to design the top-level pages for your project. Start adding appropriate links. You might have a question in your audience analysis that asks potential users about your project page. Many of you need to expand your annotated bibliography (annotated related links). Be sure to document on your Project description (blog?) page what has changed for this week.

Don't forget the quiz

Quiz [PDF]

Quiz Answers [PDF]