#!/usr/local/bin/perl #Check for the right password. # if given, display link to add homework #by Andy Harris/ 8/30/96 require "cgi-lib.pl"; #Get value from form &ReadParse (*input); $password = $input{'TxtPass'}; #used to test from command line #$password = ; #chop ($password); print &PrintHeader; print "

Results of password check

"; print "
"; print "You said $password
"; if ($password eq "safex") { #A legitimate user!; print ""; print "Add a homework assignment
"; } else { #they shouldn't be here! print "You did not enter the proper password.
"; }