Posted by Tamer Higazi on 09/17/05 02:08
Neither that!
even if I change the form method post and the whole script to "GET"
instead of "POST", I still receive no cookie!
Jerry Stuckle wrote:
> Tamer Higazi wrote:
>
>> Hi!
>> I wrote a small script setting a cookie.... but nothing is being set.
>> What could be the problem?! Did I make something wrong?! One script is
>> used to ask for the cookie and the other one shows the displayed
>> variable in a string only! But if I look at Firefox in the cookie
>> cache if the variables are set... I didn't find anything. what could
>> be the problem?!
>>
>> Apache 2.0.54 with PHP 5.1 RC1 on Gentoo Linux 2005.1
>>
>> For any help... Thanks in advance
>>
>> Tamer
>>
>
> http://www.php.net/manual/en/function.setcookie.php
>
> "setcookie() defines a cookie to be sent along with the rest of the HTTP
> headers. Like other headers, cookies must be sent before any output from
> your script (this is a protocol restriction)."
>
[Back to original message]
|