Posted by Andy Jeffries on 03/09/06 00:47
Tim Streater wrote:
> I have a page which I enter thusly:
>
> http://my.domain/mypage.phtml?absid=123&cpage=somestring
>
> and inside mypage.phtml I do this:
>
> $absid = $_GET["absid"];
>
> Unfortunately, and I can't easily fix this in the short term, my
> "somestring" may contain "absid=456".
It shouldn't do, it should contain "absid%3D456" i.e. the = within the
parameter should be urlencoded. If you're generating that url you
should wrap the parameter in urlencode().
This would then enable PHP to correctly parse each parameter.
Cheers,
Andy
[Back to original message]
|