note 106403 added to language.variables.external

From: Date: Mon, 07 Nov 2011 10:44:45 +0000
Subject: note 106403 added to language.variables.external
Groups: php.notes 
Request: Send a blank email to php-notes+get-184315@lists.php.net to get a copy of this message
Somebody wrote that spaces, dots etc do not get converted into underscore for arrays. I find this to be false. If I try <input type='checkbox' name="a b[1]" />One</label> <input type='checkbox' name="a b[2]" />Two</label> <input type='checkbox' name="a b[3]" />Three</label> Then on form submission I get Array (    [a_b] => Array        (            [1] => on        ) I'm using PHP 5.3.6 and, by the way, I think that these substitutions only made sense in the old, bad times when register_globals was almost always on. Now they are just a pain in the stop bits and should be avoided. ---- Server IP: 66.207.199.35 Probable Submitter: 79.14.158.60 ---- Manual Page -- http://www.php.net/manual/en/language.variables.external.php Edit -- https://master.php.net/note/edit/106403 Del: integrated -- https://master.php.net/note/delete/106403/integrated Del: useless -- https://master.php.net/note/delete/106403/useless Del: bad code -- https://master.php.net/note/delete/106403/bad+code Del: spam -- https://master.php.net/note/delete/106403/spam Del: non-english -- https://master.php.net/note/delete/106403/non-english Del: in docs -- https://master.php.net/note/delete/106403/in+docs Del: other reasons-- https://master.php.net/note/delete/106403 Reject -- https://master.php.net/note/reject/106403 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#184315) next »