Posted by Jerry Stuckle on 11/17/05 22:03
black francis wrote:
> again, it's the browser the one who 'encodes' the url, not you.
>
> try-n-see:
> <a href="example.php?var=one word"> turns into
> "example.php?var=one+word" in the address bar.
>
> what you should never use un a url is an ampersand (use & instead
> of &), any other character is encoded by the browser.
>
Wrong.
The browser will convert a space to a + sign. The other characters need
to be encoded before being sent to the browser so they don't get
interpreted incorrectly.
Hence the urlencode() function. Read up on it in the PHP doc.
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================
Navigation:
[Reply to this message]
|