Re: how to send spaces in the url

From: Date: Wed, 08 May 2002 22:42:00 +0000
Subject: Re: how to send spaces in the url
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-96697@lists.php.net to get a copy of this message
you can try also to serialize the array(http://www.php.net/manual/en/function.serialize.php) before sending in url and then unserialize. -- Best regards, George Nicolae IT Manager ___________________ PaginiWeb.com - Professional Web Design www.PaginiWeb.com "Pushkar Pradhan" <pushkar@ERC.MsState.Edu> wrote in message news:Pine.GSO.4.44.0205081528360.6481-100000@Titan.ERC.MsState.Edu... > 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[]=building s2&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 >

« previous php.general (#96697) next »