[ciapug] special chars in urls

Dave J. Hala Jr. dave at 58ghz.net
Tue Jun 21 11:03:06 CDT 2005


http://us3.php.net/manual/en/function.urlencode.php

On Tue, 2005-06-21 at 10:47, David Champion wrote:
> urlencode?
> 
> -dc
> 
> Scott Phillips 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
> > 
> 
> 
> _______________________________________________
> ciapug mailing list
> ciapug at cialug.org
> http://cialug.org/mailman/listinfo/ciapug
-- 

Open Source Information Systems (OSIS)
Dave J. Hala Jr. <dave at osis.us>
641.485.1606



More information about the ciapug mailing list