note 62708 added to reserved.variables
| From: | Aardvark at osu1 dot php dot net | Date: | Tue, 07 Mar 2006 21:35:10 +0000 |
| Subject: | note 62708 added to reserved.variables | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-105015@lists.php.net to get a copy of this message | ||
$_GET may not handle query string parameter values which include escaped Unicode values resulting
from applying the JavaScript "escape" function to a Unicode string.
To handle this the query parameter value can be obtained using a function such as:
function getQueryParameter ($strParam) {
$aParamList = explode('&', $_SERVER['QUERY_STRING']);
$i = 0;
while ($i < count($aParamList)) {
$aParam = split('=', $aParamList[$i]);
if ($strParam == $aParam[0]) {
return $aParam[1];
}
}
return "";
}
or by directly building an array or query string values and then processing the parameter string
using a function such as the "unescape" function which can be found at http://www.kanolife.com/escape/2006/03/unicode-url-escapes-in-php.html
(or http://www.kanolife.com/escape/ for related info).
----
Server IP: 85.116.0.130
Probable Submitter: 82.43.105.192
----
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/reserved.variables.php
Edit -- http://master.php.net/note/edit/62708
Del: integrated -- http://master.php.net/note/delete/62708/integrated
Del: useless -- http://master.php.net/note/delete/62708/useless
Del: bad code -- http://master.php.net/note/delete/62708/bad+code
Del: spam -- http://master.php.net/note/delete/62708/spam
Del: non-english -- http://master.php.net/note/delete/62708/non-english
Del: in docs -- http://master.php.net/note/delete/62708/in+docs
Del: other reasons-- http://master.php.net/note/delete/62708
Reject -- http://master.php.net/note/reject/62708
Search -- http://master.php.net/manage/user-notes.php