|
Posted by The Hub on 07/21/05 17:14
Your problem is here:
if($_GET['video' == "hide"])
'video' == "hide" returns false.
if($_GET[false]) returns false.
"Ridge Burner" <nospam@nospam.com> wrote in message
news:YDNDe.168689$x96.160514@attbi_s72...
>I can't for some reason get this cookie to set! Am I not understanding the
>correct way to do this? Here is the script:
>
> <?
> if(isset($_GET['video'])){
> if($_GET['video' == "hide"]){
> setcookie("video", "hide", time()+60*60*24*30*12, '/',
> 'mydomain.com');
> }
> if($_GET['video' == "show"]){
> setcookie("video", "", time()-(60*60*24*30*15), '/',
> 'mydomain.com');
> }
> }
> header("Location: index.php");
> ?>
>
> Any help would be appreciated!
>
> Ridge
>
Navigation:
[Reply to this message]
|