HTML Code For Password Entry<FORM METHOD="POST" ACTION="http://mysite.tripod.com/cgi-bin/password.pl"> <BR> <INPUT TYPE="password" NAME="password" VALUE="" SIZE="25" MAXLENGTH="150"> <INPUT TYPE="submit" VALUE="Submit"> </FORM> |
Password Redirection |
The following code will receive a password and redirect the person to the appropriate web page #!/usr/local/bin/perl use CGI qw(param); $n = param('password'); if ($n eq "jacknilan") {print "Location: http://jacknilan.com\n\n"; } else {print "Location: http://someerroepage.com\n\n"; } # need \n\n - also for redirection needs to be first print |