Header redirect isn't vaiable in this situation.
> ----------
> From: Jason Radley[SMTP:[EMAIL PROTECTED]]
> Sent: 31 August 2001 17:00
> To: Galvin, Max
> Cc: [EMAIL PROTECTED]
> Subject: RE: [PHP] Setcookie
>
> <?php
> $alertthem = "Testing your browser for cookies.";
>
> if(empty($check)){
> $page = "$PHP_SELF?check=1";
> header("Location: $page");
> setcookie("testcookie","1");
> }
> else{
> if(empty($testcookie)){
> $alertthem = "<H3>Please enable cookies.<br>You need cookies
> to shop this
> site</h3>";
> }
> else{
> header("Location: somepage.php3");
> }
> }
> ?>
>
> -----Original Message-----
> From: Galvin, Max [mailto:[EMAIL PROTECTED]]
> Sent: Friday, August 31, 2001 9:45 AM
> To: '[EMAIL PROTECTED]'
> Subject: [PHP] Setcookie
>
>
> Is there any way to see whether or not the cookie setting has actually
> worked without going to another page? I suspect there isn't but I'd like
> confirmation ;)
>
> Cheers
>
> Max
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]