#!/usr/local/bin/perl -w # CS2734submit.cgi # Get submission of webpage and preferred email address. use strict; use CGI qw( :standard ); use Fcntl qw( :flock ); # main parameters for the program my $infile = "CS2734classweb.html"; my $outfile = "CS2734classweb2.html"; my $passwd = "password"; my $course = "CS 2734"; my $bookimage = "http://www.cs.utsa.edu/~wagner/CS2734/patterson.gif"; my $name = param("name"); my $email = param("email"); my $webpage = param("webpage"); my $password = param("password"); my $line; my $entered; my $oldname; my $sec; my $min; my $hour; my $mday; my $mon; my $year; print header(), start_html('Submit E-mail Address and Webpage'); print ""; print "
"; print ""; print "
".$course." Spring 2002
"; print "Update Student Data

"; print "Directions:

"; print start_form(); print "

"; print ""; print ""; print ""; print ""; print "
Your name in the form: \"Last, First\"  "; print ""; print textfield("name"); print "(required)
Your preferred e-mail address  "; print ""; print textfield("email"); print "(this or the next required)
The URL of your webpage  "; print ""; print textfield("webpage"); print "(this or the previous required)
The password (now it is: \"password\")  "; print ""; print textfield("password"); print "(required)
Push the submit button  "; print ""; print submit("Submit entry"); print "(required)
"; print end_form(); print "Actions Taken:

"; print "

"; } # end of top-level elseif print end_html();