Re: paso de variables en Win
| From: | Javier | Date: | Tue, 25 Feb 2003 07:45:56 +0000 |
| Subject: | Re: paso de variables en Win | ||
| References: | 1 | Groups: | php.general.es |
| Request: | Send a blank email to general-es+get-32972@lists.php.net to get a copy of this message | ||
On 24/02/2003 at 17:46 Megabyte wrote:
>3) o usa $a= $_request["a"];
>
>la funcion $_request te permite recoger las variables enviadas por los
>formularios a traves de los metodos post o get.
Si vamos a explicar, hagamoslo bien. :)
"request" NO es una funcion, es una variable global y va en mayusculas:
$_REQUEST['a'];
Para mas datos me remito al manual:
-----------------------------------------------------
Request variables: $_REQUEST
Note: Introduced in 4.1.0. There is no equivalent array in earlier
versions.
An associative array consisting of the contents of $_GET, $_POST, and
$_COOKIE.
Note: Prior to PHP 4.3.0, $_FILES information was also included into
$_REQUEST.
This is a 'superglobal', or automatic global, variable. This simply
means that it is available in all scopes throughout a script. You don't
need to do a global $_REQUEST; to access it within functions or
methods.
----------------------------------------------
Saludos
<jl>