On 12 Sep 2003 17:01:24 -0700, [email]gojukasi.rr.com[/email] (Robert) wrote:
In a URL, & is one of the separator characters (; being the other); so you>Im trying to send a variable via GET to a php script like so:
><a href="process.php?id=test & test">Link</a>
>Leaving spaces is no problem, but the & symbol (ampersand) cannot be
>displayed to the screen. I want it to show "test & test". Instead it
>displays just "test" without the rest following it.
have urlencode it for it to be part of a value within a URL.
<a href="process.php?id=<?php echo urlencode('test & test')?>">Link</a>
It'll come out as:
And then & is special in HTML. You must encode it as & in any output.>Can anyone tell me how to display the whole variable passed to
Andy Hassall (andyandyh.co.uk) icq(5747695) ([url]http://www.andyh.co.uk[/url])
Space: disk usage ysis tool ([url]http://www.andyhsoftware.co.uk/space[/url])