Re: how to send spaces in the url

From: Date: Wed, 08 May 2002 23:09:20 +0000
Subject: Re: how to send spaces in the url
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-96704@lists.php.net to get a copy of this message
At 08.05.2002 15:35, you wrote:
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[]=aban_railroads&layer[]=airport_runways2001&layer[]=blk_grps&layer[]=buildings2&from=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 Why not urlencode($something) on the sending page,
and urldecode($something) on the receiving page ? Oliver

« previous php.general (#96704) next »