Re: how to send spaces in the url

From: Date: Wed, 08 May 2002 20:41:18 +0000
Subject: Re: how to send spaces in the url
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-96664@lists.php.net to get a copy of this message
Look at urlencode http://www.php.net/urlencode Plus spaces are encoded as '%20' not '&' in URL strings :) Cheers! Rick And many strokes though with a little axe hew down and fell the hardest-timbered oak. - Shakespeare > From: Pushkar Pradhan <pushkar@ERC.MsState.Edu> > Date: Wed, 8 May 2002 15:35:07 -0500 (CDT) > To: php-general@lists.php.net > Subject: [PHP] how to send spaces in the url > > I need to send an array like: > $layers = {"airport runways", "buildings", "census blocks", > "national > rivers"} to a new page in the url. > I understand that a space is encoded as "&" but that will also be > understood as the beginning of another vari. > > Right now I have names with "_"s. > > http://titan.erc.msstate.edu:8080/mcrgdl/changeLayersDrawOrder.html?layer[]=ab > an_railroads&layer[]=airport_runways2001&layer[]=blk_grps&layer[]=buildings2&f > rom=http://titan.erc.msstate.edu:8080/mcrgdl/test.php > > Are there any directly available functions in php to do this, I looked at > htmlentities() and some other but don't think this is the answer. > Thanks, > -Pushkar S. Pradhan > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php >

« previous php.general (#96664) next »