Jump to content

Archived

This topic is now archived and is closed to further replies.

Alanmoss

header

Recommended Posts

Hi , Can someone tell me why this script redirects
<?
$var = 3;
if($var = 2)
{
header ("Location: page2.php");
exit();
}
else
{
echo'
<p>Page 1 end</p>';
}
?>

Thanks, Alan.

Share this post


Link to post
Share on other sites
Please DO NOT double post. I assume one of these was a mistake as they're both in the same forum.

Answered at [a href=\"http://www.phpfreaks.com/forums/index.php?showtopic=95604&hl=\" target=\"_blank\"]http://www.phpfreaks.com/forums/index.php?...topic=95604&hl=[/a]

Closing thread.

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.