Reply to Re: Setting Cookie

Your name:

Reply:


Posted by Ridge Burner on 07/21/05 18:20

LOL, that was a typo! I think I just stared at it too long! That's why you
should eat breakfast! Thanks, I feel like a retard now!

Ridge

"Arjen" <arjen@mailmaarnietpuntenel.nl> wrote in message
news:42dfb638$0$14856$756600cd@news.cambrium.nl...
> Ridge Burner wrote:
>> 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!
>
> compare
> if($_GET['video' == "hide"])
>
> with
> if($_GET['video'] == "hide")
>
> read more about arrays ....
>
> Arjen
>

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация