#!/usr/bin/perl push(@INC,"/www/cgi-bin"); require 5.003; require "cgi-lib.pl"; #-------------------------- What This Does ---------------------------- # Reject if something is missing. Still doesn't record the vote or name # of the voter. #---------------------------- Configure ---------------------------- $vote="http://www.math.upenn.edu/~kazdan/210/vote/vote2.html"; #Election Form #---------------------------- Auxiliary Stuff ---------------------------- # Next is a useful "Return to the Form" button. $header = '
| Return to Voting Forms Page |
To vote, you must include your First and Last names as well as your Vote.In a few seconds your Election Ballot will be returned. error } else { # Say Thanks. print <<"ok";
Election 2000 $headerTo: $in{firstname} $in{lastname}endThank you for voting. (One more vote for "$in{"pres"}"). ok } # This closes the HTML page. print <<"end";