Midnite has asked for the wisdom of the Perl Monks concerning the following question:
if (param()) { my $pass_bob = param("pass_bob"); # verify correct password if ($bob_pass eq "password") { use CGI; print redirect("http://www.gailborden.info/services/bo +b/bobqa.htm"); } else { # print error page # } # If no password, get one from user } else { my $query = new CGI; print $query->header( "text/html" ); print <<END_PASS; <TITLE>B.O.B. Question Submission</TITLE> <BODY BGCOLOR=\"#FFFFFF\"><font face=\"bazooka\" size=\"3\"> <center><h1>B.O.B. Q and A w/Suggestions Submission Form</h1> <hr> <form> <p>Type Password <p> <input name=pass_bob size=20 type=password> <p><input type=submit value=Submit name=S1> <hr> </form> </font></body></html> END_PASS }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Param not working correctly
by zdog (Priest) on Sep 16, 2004 at 18:46 UTC | |
|
Re: Param not working correctly
by waswas-fng (Curate) on Sep 16, 2004 at 19:11 UTC |