Re: Need help

From: Date: Tue, 20 Jun 2000 16:42:34 +0000
Subject: Re: Need help
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-2326@lists.php.net to get a copy of this message
At 06:34 PM 6/20/00 +0200, Thierry Missimily wrote:
Hi, I'm sorry if i'm in the wrong list, i need some help about how to give a string arguments to a php3 program when these strings have some blank inside. For example : alarme_city.php3?city_name=$city_name&country=$country with city_name="MEUDON LA FORET"
       country="PAYS BAS"
Now PHP cut the string argument when it meet the first blank : alarme_city.php3?city_name=MEUDON I can't control city name because i got its in a database and i can't make any supposition on how names have been written. The use of ereg_ function would add too much overhead in my programs. --
Hi Thierry, Use the urlencode function to prepare your data for use as a get string. HTH, Zak Greant Creative Director Nucleus Information Service Inc. "I am rather like a mosquito in a nudist camp: I know what I ought to do, but I don't know where to begin." - Stephen Bayne

« previous php.general (#2326) next »