Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: CGI fails to urlencode & chars in outbound url's

by Juerd (Abbot)
on Jun 12, 2002 at 11:02 UTC ( [id://173761]=note: print w/replies, xml ) Need Help??


in reply to CGI fails to urlencode & chars in outbound url's

http://www.somedomain/script.pl?Range=./things/Chalk%20&%20Cheese/

&amp; in html is the ampersand character. That is also true for within href attributes. If you don't believe me, have a look at this link: <a href="/&amp;&amp;&amp;">. Your code works. It is probably the space that confuses your script.pl.

- Yes, I reinvent wheels.
- Spam: Visit eurotraQ.

Replies are listed 'Best First'.
Re: Re: CGI fails to urlencode & chars in outbound url's
by BrowserUk (Patriarch) on Jun 12, 2002 at 11:15 UTC

    Sorry! I forgot that I don't need to entity encrypt the & within the <code> sections.

    It is definately the & that is (was! Using uri_encode() fixed it) the problem.

    If I can work out how I edit the node, I will correct that!

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://173761]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others chanting in the Monastery: (4)
As of 2024-04-26 09:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found