RE: [PHP] Re: & in Query String
| From: | Chris Shiflett | Date: | Tue, 26 Nov 2002 23:28:57 +0000 |
| Subject: | RE: [PHP] Re: & in Query String | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-126209@lists.php.net to get a copy of this message | ||
--- "Jonathan Rosenberg" <jr@tabbysplace.org> wrote:
> I tried it & it fails. The browser sends the query
> string with the & & the $_GET access fails.
>
> I am using IE 6. I can't imagine that it would be
> buggy in this regard.
I just tried this in IE 6, and it worked fine for me. My test code
follows:
<?
if (isset($_GET["foo"]))
{
echo "<pre>";
print_r($_GET);
echo "</pre>";
}
else
{
?>
<a href="./test.php?foo=bar&blah=blah">Click Here</a>
<?
}
?>
This should display:
Array
(
[foo] => bar
[blah] => blah
)
Does it not work for you?
Chris