#!/usr/bin/perl require "cgi-lib.pl"; MAIN: { if (&ReadParse(*input)) {&ProcessForm;} else {&ShowForm;} } sub ShowForm { # Contains option to display form print &PrintHeader; print &HtmlTop("Reset Array of Values"); print <

Enter password:

   


Last updated 98/11/24
© J.A.N. Lee, 1998.

STUFF print &HtmlBot; } sub ProcessForm { print &PrintHeader; print &HtmlTop("Resetting Values Survey Results"); if ($input{'pwd'} ne "babbage") {# check password print "

UNAUTHORIZED ENTRY, TRY AGAIN

" } else { # set up blank array of zeros separated by blanks $zero = 0.0; open(sfile, ">values"); print(sfile " "); for ($i=1; $i<22; $i++) { print(sfile $zero); print(sfile " ") } #end for close(sfile); #open(rfile, ""; #for ($i=1; $i<22; $i++){ #print "reread[$i] = ", $reread[$i], "

" # } # end for close(rfile); print "

Survey Results Reset to Zero
Click BACK button to Return to Survey

"; print &HtmlBot } #end else }