Okay, look at this:
$x=1; if($x) { header("Location: a.php"); } header("Location: b.php");
That will go to page B correct? Would this be more proper?
$x=1; if($x) { header("Location: a.php"); exit;} header("Location: b.php");
if($x) { header("Location: a.php"); }else{ header("Location: b.php"); }
What Arc said...
And you should almost always have exit; after a header ("Location: "); call, just to make sure you actually redirect them and something in PHP doesn't go foobar / the browser doesn't try and accept the second header.