#!usr/bin/local/perl -w use strict; use CGI qw( :standard ); my $p; my $password; $p="howdy"; $password=param('password'); if ($p eq $password) { print "Content-type: text/html\n\n <html><head><title>Password Check</title> </head> <body bgcolor=navy text=white> <h1>It worked</h1> <hr><br> </body></html>"; } else { print "Content-type: text/html\n\n <html><head><title>Password Check</title> </head> <body bgcolor=orange> <h1>Loser -- Try Again</h1> <hr><br> </body></html>"; }
In reply to CGI Password by bmhm
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |