Re: Need help

From: Date: Tue, 20 Jun 2000 16:45:53 +0000
Subject: Re: Need help
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-2327@lists.php.net to get a copy of this message
replace all " " with + ereg_replace (" ","+",$city_name); 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 > +-------------------------------------------------------------------+ > > ------------------------------------------------------------------------ > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net -- -------------------------- Canaan Surfing Ltd. Internet Service Providers Ben-Nes Michael - Manager Tel: 972-6-6925757 Fax: 972-6-6925858 http://www.canaan.co.il --------------------------

« previous php.general (#2327) next »