The_Rev has asked for the wisdom of the Perl Monks concerning the following question:
I have the following code that redirects a person to another html page if a certain word is seen, using Apache as my webserver.
My objective is to redirect them without having the URL in the browser change.#!/perl/bin/perl.exe -wT use CGI; $q = new CGI; $name = $q->param('name'); $comment = $q->param('comment'); if ($name =~ /^Auto$/i){ print $q->redirect("http://somewhere.com/cgi-bin/Auto.cgi"); } else{ print $q->header("text/html"); }
I know this is possible, but I'm uncertain as to how the code should look. I have tried using internal redirects (not providing an absolute path) but the URL still changes to reflect the new page.
Any ideas?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
•Re: cgi redirect (again)
by merlyn (Sage) on Dec 03, 2002 at 15:29 UTC | |
by Kanji (Parson) on Dec 03, 2002 at 15:50 UTC | |
by merlyn (Sage) on Dec 03, 2002 at 16:08 UTC | |
by EvdB (Deacon) on Dec 03, 2002 at 19:56 UTC | |
by EvdB (Deacon) on Dec 03, 2002 at 15:43 UTC | |
by merlyn (Sage) on Dec 03, 2002 at 15:56 UTC | |
|
Re: cgi redirect (again)
by PodMaster (Abbot) on Dec 03, 2002 at 15:23 UTC |