RE: [PHP] Redirect to a new page?

From: Date: Sat, 15 Mar 2003 02:02:15 +0000
Subject: RE: [PHP] Redirect to a new page?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-139689@lists.php.net to get a copy of this message
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:beauford.2002@rogers.com] 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

« previous php.general (#139689) next »