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" <[EMAIL PROTECTED]> 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');
> ?>
> 
> 
> 
> 

Reply via email to