The_Rev has asked for the wisdom of the Perl Monks concerning the following question:
I'm using the follwing code:
#!/perl/bin/perl.exe -wT use CGI; $q = new CGI; $name = $q->param('name'); $comment = $q->param('comment'); if ($name =~ /^foo$/i){ print $q->redirect("http://hiddenURL"); } else{ print $q->header("text/html"); }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
•Re: cgi redirect
by merlyn (Sage) on Nov 26, 2002 at 19:24 UTC | |
by The_Rev (Acolyte) on Nov 26, 2002 at 19:44 UTC | |
by cLive ;-) (Prior) on Nov 26, 2002 at 20:12 UTC | |
by merlyn (Sage) on Nov 27, 2002 at 00:51 UTC | |
by The_Rev (Acolyte) on Dec 02, 2002 at 14:31 UTC | |
by crenz (Priest) on Nov 26, 2002 at 20:13 UTC | |
|
Re: cgi redirect
by dingus (Friar) on Nov 27, 2002 at 10:30 UTC |