Hy
Robert MacCombe wrote:
> Hi, how do I redirect to a different URL, e.g. as a result of an IF
> condition being true. I'm basically looking for a PHP version of the ASP -
> Response.Redirect("/otherpage.htm")
use the header function to send a location: header to the browser:
$redirect_url="http://www.nowhere.net/";
if( $foobar=="" ){
header( "Location: ".$redirect_url );
}
henning
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]