You are here: Re: Problems setting cookie « PHP Programming Language « IT news, forums, messages
Re: Problems setting cookie

Posted by Jerry Stuckle on 09/17/05 06:19

Tamer Higazi wrote:
> Neither that!
> even if I change the form method post and the whole script to "GET"
> instead of "POST", I still receive no cookie!
>
>

That's because you're sending output before the call to setcookie()!

Makes no difference if it's GET or POST - you cannot send ANYTHING - no
blank line, no nothing - before a call to setcookie().

Fix you code and it will work just fine!

P.S. Please don't top post.


--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================

 

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

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