Re: simple ?- load page after submit

From: Date: Fri, 23 Jan 2004 16:49:54 +0000
Subject: Re: simple ?- load page after submit
Groups: php.general 
Request: Send a blank email to php-general+get-175534@lists.php.net to get a copy of this message
<snip> Or, correctly: header("Location: http://www.yourdomain.com/personalpage.php?id=$id"); </snip> to add to what john said, you could make it a little easier to move your script from place to place if you use some php variables and the dirname function. this comes right from the manual: <?php header("Location: http://" . $_SERVER['HTTP_HOST'] . dirname($_SERVER['PHP_SELF']) . "/" . $relative_url); ?>

« previous php.general (#175534) next »