Re: Re: how to send spaces in the url

From: Date: Thu, 09 May 2002 16:24:50 +0000
Subject: Re: Re: how to send spaces in the url
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-96830@lists.php.net to get a copy of this message
Thanks to all who responded. I think I should have mentioned that I am trying to send these vars. in the url to a javascript pg. thus won't have access to php on the other side (i.e. I want to keep it this way for speed). So as Kyle suggested to replace the " " is the only way? This is fine but isn't there something standard for this? > What you could do is think of some random sequence of characters, say > |-| and use that for a space. > > Then, on the receiving script, just remember to use > str_replace("|-|"," ",$HTTP_SERVER_VARS["QUERY_STRING"]) > > > If you don't have access to the receiving script, then you'll need to > use "%20". > > > -Kyle > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > -Pushkar S. Pradhan

« previous php.general (#96830) next »