Stephen Brooks wrote:
>On Wed, 2004-08-18 at 11:21, kevin wrote:
>>>$urlcode = urlencode($cornishword);
>>echo "<a href=\"scripts/popup.php?cword=$urlcode\">test</a>";
>>>>When I use the above it works fine until I hit words like conveţhaz which PHP
>>sees on the other side as conve with the rest chopped off. Any ideas?
>> The problem is the & in the word you're trying to submit, it's
>parsed as a GET seperator. This doc page has a note on how to handle
>this suggesting using & instead of & as the seperator. Then use
>htmlentities(urlencode($data)) to encode your url fragment.
>>I'd recommend instead using rawurlencode()
"This is the encoding described in RFC 1738 for protecting literal
characters from being interpreted as special URL delimiters"
Maintained by the ILUG website team. The aim of Linux.ie is to
support and help commercial and private users of Linux in Ireland. You can
display ILUG news in your own webpages, read backend
information to find out how. Networking services kindly provided by HEAnet, server kindly donated by
Dell. Linux is a trademark of Linus Torvalds,
used with permission. No penguins were harmed in the production or maintenance
of this highly praised website. Looking for the
Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!