Re: Forward Link
| From: | Nicole Amashta | Date: | Thu, 18 Apr 2002 15:14:00 +0000 |
| Subject: | Re: Forward Link | ||
| References: | 1 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-13164@lists.php.net to get a copy of this message | ||
You can use embedded javascript for this.
Example:
<snip>
<?
## some code here .. blah blah
echo "<script>window.location='http://path/to/next/page';</script>";
exit; ## you may want to stop execution of rest of page here but at this
point you should be
## directed to the url set above.
?>
</snip>
hope that helps some.
--
Nicole Amashta
Web Application Developer
www.aeontrek.com
"Wayne Hinch" <hinchy2000@lineone.net> wrote in message
news:000001c1e6b2$acfddcd0$0300a8c0@gromit...
> Hi all,
>
> How can I get a page to automatically forward to the next page currently
> I am trying to use
>
> header("Location: [filename.php]");
>
> although this is not working it is bringing up the following error
>
> Warning: Cannot add header information - headers already sent by (output
> started at c:\html/customer/newcust.php:3) in [filename] on line 304
>
> How do I get around this problem, Please help.
>
> Wayne
>