note 83762 rejected from function.setcookie by tularis
| From: | tularis@php.net | Date: | Tue, 10 Jun 2008 21:44:45 +0000 |
| Subject: | note 83762 rejected from function.setcookie by tularis | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-140329@lists.php.net to get a copy of this message | ||
Note Submitter: simonxda at hotmail dot com
----
<?php
$value = 'something from somewhere';
setcookie("TestCookie", $value);
setcookie("TestCookie", $value, time()+3600); /* expire in 1 hour */
setcookie("TestCookie", $value, time()+3600, "/~rasmus/",
".example.com", 1);
?>
OUTPUT
--------------------
something+from+somewhere
---------------------
I did the script above and it work fine except the value has a '+' instead of spacing.
Anyway to just output 'something from somewhere' without the '+'? Thanks.