Re: Need help

From: Date: Tue, 20 Jun 2000 16:40:14 +0000
Subject: Re: Need help
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-2324@lists.php.net to get a copy of this message
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. > -- > Best regards, > > Thierry Missimilly > > +-------------------------------------------------------------------+ > Thierry Missimilly > mailto:Thierry.Missimilly@bull.net > BULL XSBU Phone :+33 (0)4 76 29 74 54 > 1, rue de Provence B.P. 208 Fax :+33 (0)4 76 29 78 62 > 38432 Echirolles Cedex FRANCE Poste :(229) 7454 > +-------------------------------------------------------------------+ Use rawurlencode() and rawurldecode() to encode the special characters. Andrian

« previous php.general (#2324) next »