Alanmoss Posted June 11, 2006 Share Posted June 11, 2006 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. Link to comment https://forums.phpfreaks.com/topic/11736-header/ Share on other sites More sharing options...
AndyB Posted June 11, 2006 Share Posted June 11, 2006 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. Link to comment https://forums.phpfreaks.com/topic/11736-header/#findComment-44398 Share on other sites More sharing options...
Recommended Posts