Re: In need of a script
| From: | Stevie D Peele | Date: | Sun, 24 Aug 2003 17:55:44 +0000 |
| Subject: | Re: In need of a script | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-160596@lists.php.net to get a copy of this message | ||
Heres what I wrote --
<?php
if ($_COOKIE['pagename'])
{
header('Location: http://www.net-riches.com/800x600.html');
}
?>
and I got a parse error on line 4, but I do not see what is wrong on line
4!
Can anyone else see?
Thanks
On Sun, 24 Aug 2003 10:04:50 -0400 "Matt" <hj611@epooch.com> writes:
> On Sunday, August 24, 2003 at 9:49 AM Stevie D Peele wrote:
>
> > Can someone show me an example of some code that works something
> like
> > this :
> >
> > <?php
> >
> > if cookie is present
> > redirect to a certain page
> >
> > ?>
> <?php // this must be the first line in the script (or use output
> buffering) -- see http://www.php.net/header for explanation
> if ($_COOKIE['cookie_I_want_to_know_about']) {
> header('Location:
> http://www.someserver.com/page.php');
> ?>
>
>
>
>