Re: parametros por URL
| From: | Chiquito Reyes | Date: | Wed, 05 Mar 2003 07:48:56 +0000 |
| Subject: | Re: parametros por URL | ||
| References: | 1 | Groups: | php.general.es |
| Request: | Send a blank email to general-es+get-33335@lists.php.net to get a copy of this message | ||
On 04/03/2003 at 16:53 Ricardo Vila wrote:
>bueno al llamar a la pagina edita.php
>este me manda la variable $ape y $fech incompletas
>por ejemplo si $ap=CAMPOS MALDONADO Y $fec=2003-02-02 13:30:12-05
>
>me manda $ap=CAMPOS Y $FEC=''
>cual puede ser el problema he probado casi todo pero no consigo enviar
>los datos completos, [ues los necesito para realizar un select en la
>p[agina edita.php
Porque los valores tienen espacios en blanco.
Fijate en esta funcion:
-----------------------------------------
urlencode
(PHP 3, PHP 4 )
urlencode -- URL-encodes string
Description
string urlencode ( string str)
Returns a string in which all non-alphanumeric characters except -_.
have been replaced with a percent (%) sign followed by two hex digits
and spaces encoded as plus (+) signs. It is encoded the same way that
the posted data from a WWW form is encoded, that is the same way as in
application/x-www-form-urlencoded media type. This differs from the
RFC1738 encoding (see rawurlencode()) in that for historical reasons,
spaces are encoded as plus (+) signs. This function is convenient when
encoding a string to be used in a query part of an URL, as a convenient
way to pass variables to the next page:
----------------------------------
<jl>