Program 5 for Comp 150: Web Order with a CGI script
This is a pair assignment worth 30 points.
The CGI program should begin with a comment including your names,
a brief description of what the program does and information on any help you received on
the project. If it is entirely your own
work, say so. If
anyone helped either of you,
identify them by name and describe how they helped.
New submission procedure
The CGI
program should be submitted via the
assignment submission mechanism in Blackboard. We will go over that mechanism in class. One partner submits the program
and his or her log as
two documents in the assignment submission. The other partner
just
submits a log. Make sure your log contains "log" in the filename:
for example, log.doc is enough or prog5-log.doc. (You do
not have to identify you or the assignment in the file name anymore:
that information is attached automatically in the assignment
mechanism! Still identify both partners
inside the files in your comments.) Another copy of the
cgi program and the html files that go with it should be placed on your
web site so your script can be tested. In the initial comments in your CGI
script,
be sure to include the location of the web page:
webpages.cs.luc.edu/~????????/????????.html
A disadvantage
of the assignment mechanism is that you can only submit once. If
for some reason you made a submission in error, you will need to make a
resubmission through the
old digital dropbox route. In that case also send email to the TA, reminding him to look in the digital dropbox.
As usual, the logs should include time spent, and at least briefly how the process went for you and your partner.
Assignment
Rework Lab 8, or a
similar or fancier idea into web pages. The initial web
page should clearly label the data needed and have entries for it.
A name of the person making the order should be included -- be careful, this was not a requirement in lab 8.
The cgi script should generate a new, clearly laid out web page
in legal HTML, that gives the original information back and the total
order amount, or whatever makes sense to calculate in your version.
For 10 points extra credit keep a log of the data in each transaction in a file, one line per transaction,
appending
the new transaction each time. Have the CGI script recognize a
special input code (like the name is OWNER and the number of units
ordered is 99999). In the special case, respond with a different
web page, one that shows the whole transaction log. (No new
order should be recorded in this case.)