Zach Elfers
02-26-2003, 12:45 PM
How do you redirect to a new page in PHP?
location ("page.php"); # doesn't work
location ("page.php"); # doesn't work
|
Click to See Complete Forum and Search --> : PHP again Zach Elfers 02-26-2003, 12:45 PM How do you redirect to a new page in PHP? location ("page.php"); # doesn't work jpmoriarty 02-26-2003, 01:35 PM the code is: header("location:page.php"); and since it's a header it's got to be sent before anything else is sent to the browser. You may want to join us at the php builder community forums (http://www.phpbuilder.com/board) and check out the manual (http://www.php.net) . Zach Elfers 02-26-2003, 02:21 PM Thanks. Rick Bull 02-27-2003, 01:24 PM By the way you're supposed to specify a full URI (i.e. with the protocol and domain like "http://www.someserver.com/page.php"). I think it's part of the HTTP specification and is in the PHP manual. webdeveloper.com
Copyright Internet.com Inc., All Rights Reserved. |