[ciapug] special chars in urls
Scott Phillips
scott.phillips at DRAKE.EDU
Tue Jun 21 10:45:39 CDT 2005
Ah, ha!
urlencode()
Nevermind.
At 10:36 AM 6/21/2005 -0500, you wrote:
>I want to create a page (direct.php) that can take a url as a parameter like:
>
>direct.php?url=http://www.foobar.com/blah.asp?id=5&action=poop
>
>but the ? and & characters will cause problems, no? At first, I thought
>passing the url parameter through htmlspecialchar() when creating the link
>might work... until I actually thought about it. (Duh.) There must be
>some other way to do it.
>
>Any suggestions?
>
>
>Scott Phillips
>Web Developer
>Cowles Library, Drake University
>(515) 271-2975
>_______________________________________________
>ciapug mailing list
>ciapug at cialug.org
>http://cialug.org/mailman/listinfo/ciapug
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://cialug.org/pipermail/ciapug/attachments/20050621/1e104a0b/attachment.html
More information about the ciapug
mailing list