> I have a question about clearing or resetting headers. My script executes > a > function based on the variables passed to it, such as: > > events.php?action=add > > However, when the function is finished, I need to redirect to "events.php" > with no variables, because refreshing the page causes another event to be > added. I tried: > > header("Location: ./php/events.php"); > > But that did not reset the headers. Any tips?
www.php.net/header the correct syntax is header("Location: http://www.yourdomain.com/php/events.php"); ---John W. Holmes... PHP Architect - A monthly magazine for PHP Professionals. Get your copy today. http://www.phparch.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php