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?
In reply to [CGI] redirect after headers have been printed by hesh
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |