note 64336 added to language.variables.predefined
| From: | johnphayes at gmail dot com | Date: | Wed, 12 Apr 2006 17:36:13 +0000 |
| Subject: | note 64336 added to language.variables.predefined | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-107896@lists.php.net to get a copy of this message | ||
I haven't found it anywhere else in the manual, so I'll make a note of it here - PHP will
automatically replace any dots ('.') in an incoming variable name with underscores
('_'). So if you have dots in your incoming variables, e.g.:
example.com/page.php?chuck.norris=nevercries
you can not reference them by the name used in the URI:
//INCORRECT
echo $_GET['chuck.norris'];
instead you must use:
//CORRECT
echo $_GET['chuck_norris'];
----
Server IP: 64.71.164.2
Probable Submitter: 63.172.193.57
----
X-Spam-Status: No, hits=3.1 required=5.0 tests=DATE_MISSING,FROM_NO_LOWER
autolearn=no version=2.64
----
Manual Page -- http://www.php.net/manual/en/language.variables.predefined.php
Edit -- http://master.php.net/note/edit/64336
Del: integrated -- http://master.php.net/note/delete/64336/integrated
Del: useless -- http://master.php.net/note/delete/64336/useless
Del: bad code -- http://master.php.net/note/delete/64336/bad+code
Del: spam -- http://master.php.net/note/delete/64336/spam
Del: non-english -- http://master.php.net/note/delete/64336/non-english
Del: in docs -- http://master.php.net/note/delete/64336/in+docs
Del: other reasons-- http://master.php.net/note/delete/64336
Reject -- http://master.php.net/note/reject/64336
Search -- http://master.php.net/manage/user-notes.php