if the browser doesn't support Javascript use this : if (YES) {
header("Location: thispage.php"); } else { header("Location: thatpage.php"); } exit(); Just make sure you haven't send any output to the browser yet. A suggestion: place this code before you ever print in your code. I know you could do it :) Thanks, Miches:) -----Original Message----- From: Beauford.2002 [mailto:[EMAIL PROTECTED] Sent: Thursday, March 13, 2003 10:44 AM To: PHP General Subject: [PHP] Redirect to a new page? Hi, I have searched around for hours on this and nothing seems to work. I want simply to do this.... if yes - goto thispage.php if no - goto thatpage.php Thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php