Hey people, i've got the switches to work now, and ive replaced the code with:
if(!$name)
{ header("Location: index.php?id=02b&mess=1"); exit(); }
if ($password == "0")
{ header("Location: index.php?id=02b&mess=2"); exit(); }
This code is at the top of a page, if both $name and $password are satisfied, then the rest of the page is shown, but if they are not, it does not display the pages
index.php?id=02b&mess=1
or
index.php?id=02b&mess=2
it just displays a blank page. Could this be to do with the exit(); at the end, or becsue its not executing all the code?
Thanks Very Much
Matt