You are here: Re: cookies gone after 2nd reload « All PHP « IT news, forums, messages
Re: cookies gone after 2nd reload

Posted by Steve on 03/08/06 16:24

"NC" <nc@iname.com> wrote in
news:1141765100.680550.282070@p10g2000cwp.googlegroups.com:

> Gernot Frisch wrote:
>>
>> I tried cookies. I enter good password and get "checking for cookies"
>> message. Then I press "Continue", and get the "Enter Password"
>> message.
>> What's wrong with my code?
> ...
>> if($_COOKIE['glbasic_admin'] != $password)
>> {
>> echo('<html><body>Enter the admin password and enable cookies to
>> proceed.'.
>> '<br><form method="post"
>> action="edit.php?lang="'.$_GET['lang'].'<input type="text"
>> name="glbasic_admin" >'.
>> '<br><input type="submit" name="password" value="Login">'.
>> '</form>');
>> exit();
>> }
>
> It appears that the <form> tag isn't closed (the ">" is missing)...
>
> Cheers,
> NC
>



you might want to echo </body></hmtl> as they are not present either.

 

Navigation:

[Reply to this 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

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