note 23761 added to function.setcookie
| From: | tonyhana at lvcm dot com | Date: | Sat, 27 Jul 2002 08:25:29 +0000 |
| Subject: | note 23761 added to function.setcookie | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-33621@lists.php.net to get a copy of this message | ||
in reply to icemann320@yahoo.com
You have a variable type conflict.
change this line...
>>setcookie("f_name",$f_name, time() + 365 * 86400);
to this..
setcookie("f_name",$_POST["f_name"], time() + 365 * 86400);
and it will be a lot more portable.
--
http://www.php.net/manual/en/function.setcookie.php
http://master.php.net/manage/user-notes.php?action=edit+23761
http://master.php.net/manage/user-notes.php?action=delete+23761
http://master.php.net/manage/user-notes.php?action=reject+23761