RE: [PHP] How to ASP style Response.Redirect
| From: | Boaz Yahav | Date: | Tue, 03 Oct 2000 20:00:45 +0000 |
| Subject: | RE: [PHP] How to ASP style Response.Redirect | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-18465@lists.php.net to get a copy of this message | ||
Why not use meta refresh?
http://www.weberdev.com/index.php3?GoTo=get_example.php3?count=124
Sincerely
berber
Visit http://www.weberdev.com Today!!!
To see where PHP might take you tomorrow.
> -----Original Message-----
> From: Ian Plount [mailto:iplount@comcity.com]
> Sent: Tuesday, October 03, 2000 3:05 AM
> To: php-general@lists.php.net
> Subject: [PHP] How to ASP style Response.Redirect
>
>
> Is there a way to do an ASP style response.redirect from
> within a PHP script. I know I can use
>
> header("Location: somepage.html");
>
> but it gives the error headers have already been sent unless
> I put the above line at the beginning of the page. PHP seems
> pretty cool I'm surprised I can't find a way just to do a
> redirect as my script is running.
>
> Thanks,
> Ian
>