Re: Need help
| From: | David Newcomb | Date: | Wed, 21 Jun 2000 08:58:42 +0000 |
| Subject: | Re: Need help | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-2462@lists.php.net to get a copy of this message | ||
$city_name = urlencode($city_name);
$country = urlencode($country);
<a href="alarme_city.php3?city_name=$city_name&country=$country">link</A>
You have to do them seperatly otherwise urlencode() will encode the
seperating
'?', '&' and '='s.
----- Original Message -----
From: Thierry Missimily <THIERRY.MISSIMILLY@BULL.NET>
To: <php-general@lists.php.net>
Cc: Walter.Gonon <Walter.Gonon@BULL.NET>
Sent: Tuesday, June 20, 2000 5:34 PM
Subject: [PHP-GENERAL] Need help
> 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