Here is a snippet of my code. I would like to be able to have the page redirect to another page based on the if statement results(hopefully this is enough code):
echo" $accesslv"; } if($accesslv == 1) { GOTO http://blah.blah.blah } elseif($accesslv == 2) { GOTO http://blah.blah.blah } else { GOTO http://blah.blah.blah } ?>
Use the header function:
if(some condition) header("Location: http://www.somewebsite.com");
if(some other condition) header("Location: http://www.someothersite.com");
Jon
make sure you call header() before you output any text or graphics though. either that or buffer your output.
i noticed you have one of the new dot-blah domain names. cool.