hesh has asked for the wisdom of the Perl Monks concerning the following question:
I'm writing a CGI script which displays a form, on submit sets some session variables and then redirects to a different page.
The problems is, to set the session variables I need to print the HTTP header first.
print $session->header();
But after printing the header I can't redirect to another page anymore.
$query->redirect('www.google.com'); fails.
Any idea how to solve this problem?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: [CGI] redirect after headers have been printed
by imp (Priest) on Jul 14, 2006 at 04:06 UTC | |
|
Re: [CGI] redirect after headers have been printed
by rodion (Chaplain) on Jul 14, 2006 at 03:52 UTC | |
|
Re: [CGI] redirect after headers have been printed
by NetWallah (Canon) on Jul 14, 2006 at 02:29 UTC | |
by jhourcle (Prior) on Jul 14, 2006 at 02:47 UTC | |
|
Re: [CGI] redirect after headers have been printed
by jhourcle (Prior) on Jul 14, 2006 at 02:37 UTC | |
|
Re: [CGI] redirect after headers have been printed
by shmem (Chancellor) on Jul 14, 2006 at 13:25 UTC | |
|
Re: [CGI] redirect after headers have been printed
by Khen1950fx (Canon) on Jul 14, 2006 at 03:42 UTC |