Re: QUERY_STRING_UNESCAPED
| From: | Jerry | Date: | Thu, 29 Jun 2000 15:00:24 +0000 |
| Subject: | Re: QUERY_STRING_UNESCAPED | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-3809@lists.php.net to get a copy of this message | ||
In article <Pine.LNX.4.10.10006290126180.24081-100000@host.digres.cz>,
david@prog.cz (David Cermak) wrote:
> But when i include a php3 script from shtml file <!--#include
> virtual="foobar.php3"--> original "QUERY_STRING" is than called
> "QUERY_STRING_UNESCAPED". Because of that no variables are parsed.
>
> I haven't found anything about that - can anyone help me?
Sure. The following code at the beginning of your script should get you
going:
$qsu = str_replace('\\','',$QUERY_STRING_UNESCAPED);
parse_str($qsu);
The 'parse_str()' function works on a GET-style string
(item1=value1&item2=value2&etc.) and sets variables accordingly.
Jerry