Re: [Q] Howto go directly to a URL?

From: Date: Fri, 13 Feb 2004 21:05:57 +0000
Subject: Re: [Q] Howto go directly to a URL?
Groups: php.general 
Request: Send a blank email to php-general+get-177647@lists.php.net to get a copy of this message
<snip> Can I avoid that intermediate step, somehow? When my script logs in the user, how to I write the code that dispatches directly to the home page? </snip> Have you tried a redirect? http://www.php.net/header <?php header("Location: http://www.example.com/"); /* Redirect browser */ /* Make sure that code below does not get executed when we redirect. */ exit; ?>

« previous php.general (#177647) next »