note 83762 added to function.setcookie

From: Date: Tue, 10 Jun 2008 17:59:24 +0000
Subject: note 83762 added to function.setcookie
Groups: php.notes 
Request: Send a blank email to php-notes+get-140324@lists.php.net to get a copy of this message
<?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. ---- Server IP: 64.71.164.2 Probable Submitter: 218.186.11.3 (proxied: 58.182.187.81) ---- Manual Page -- http://www.php.net/manual/en/function.setcookie.php Edit -- https://master.php.net/note/edit/83762 Del: integrated -- https://master.php.net/note/delete/83762/integrated Del: useless -- https://master.php.net/note/delete/83762/useless Del: bad code -- https://master.php.net/note/delete/83762/bad+code Del: spam -- https://master.php.net/note/delete/83762/spam Del: non-english -- https://master.php.net/note/delete/83762/non-english Del: in docs -- https://master.php.net/note/delete/83762/in+docs Del: other reasons-- https://master.php.net/note/delete/83762 Reject -- https://master.php.net/note/reject/83762 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#140324) next »