Jump to content


Photo

header


  • This topic is locked This topic is locked
1 reply to this topic

#1 Alanmoss

Alanmoss
  • New Members
  • Pip
  • Newbie
  • 9 posts

Posted 11 June 2006 - 08:00 PM

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.

#2 AndyB

AndyB
  • Staff Alumni
  • Advanced Member
  • 5,465 posts
  • LocationToronto

Posted 11 June 2006 - 08:21 PM

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.
Legend has it that reading the manual never killed anyone.
My site




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users