RE: [PHP-WIN] Redirect browser to another URL?
| From: | Kieran Hall | Date: | Tue, 26 Nov 2002 22:48:08 +0000 |
| Subject: | RE: [PHP-WIN] Redirect browser to another URL? | ||
| References: | 1 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-17154@lists.php.net to get a copy of this message | ||
Try using a javascript with your php to create a redirect redirect:
<script language="JavaScript">
document.location.href="<?PHP echo $url ?>"
</script>
Hope this is useful.
Kieran Hall
-----Original Message-----
From: Jack Kelly Dobson [mailto:jdobson@tcgcorp.net]
Sent: 26 November 2002 22:43
To: php-windows@lists.php.net
Subject: [PHP-WIN] Redirect browser to another URL?
Hello,
Anyone know how to have a script re-direct the browser to a URL cleanly?
I've tried using header("location:" . $url); but I'm running into a
problem
with a server error saying header data was already sent from "some line
in
the script that was running" as if the new url is being opened after a
header has already been sent.
All I want to do is have the script stop it's execution and open another
page.
Any ideas?
j-
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php