Bug #17974 Updated: setcookie with a variable in name don't work
| From: | sniper@php.net | Date: | Tue, 25 Jun 2002 17:40:33 +0000 |
| Subject: | Bug #17974 Updated: setcookie with a variable in name don't work | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-12061@lists.php.net to get a copy of this message | ||
ID: 17974
Updated by: sniper@php.net
Reported By: obeaudet@videotron.ca
-Status: Open
+Status: Bogus
Bug Type: Unknown/Other Function
Operating System: win32
PHP Version: 4.2.1
New Comment:
Sorry, but the bug system is not the appropriate forum for asking
support questions. Your problem does not imply a bug in PHP itself.
For a list of more appropriate places to ask for help using PHP,
please visit http://www.php.net/support.php
Thank you for your interest in PHP.
Previous Comments:
------------------------------------------------------------------------
[2002-06-25 11:52:09] obeaudet@videotron.ca
I tried this command
$toto = "Temp";
setcookie("$toto[firstname]",$firstname);
and the cookie was not set but if I write this
setcookie("Temp[$toto]",$firstname);
it work
I found a workaround with this command
setcookie(setval($toto) . "[firstname]", $firstname);
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=17974&edit=1