by ppera » Thu Jan 09, 2003 2:19 pm
Better way is this:
print"<META HTTP-EQUIV=\"Refresh\" CONTENT=\"0; URL=$page\">"; die;
This automatically redirects always, while header("Location.... works only if no html output is sent.
Statement die after prevents execution of further code if redirect is conditional.