Re: viewing get/post variables
| From: | Tyler Longren | Date: | Tue, 16 Apr 2002 13:39:05 +0000 |
| Subject: | Re: viewing get/post variables | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-93178@lists.php.net to get a copy of this message | ||
You shouldn't have to do anything to php.ini to get that. You should have a
variable called $var1 on index.php already.
Just:
if ($var1 != "") {
print "$var1";
}
else {
print "var1 is empty";
}
Tyler Longren
Captain Jack Communications
tyler@captainjack.com
www.captainjack.com
----- Original Message -----
From: "Martín Marqués" <martin@bugs.unl.edu.ar>
To: <php-general@lists.php.net>
Sent: Tuesday, April 16, 2002 8:29 AM
Subject: [PHP] viewing get/post variables
> I can't remmeber how to configure php.ini so that if I get the URL
>
> http://localhost/index.php?var1=10
>
> an echo $var1 will return 10
>
> What I mean, is that _GET["var1"] exists, but I want $var1 to be
available.
>
> Any hint?
>
> --
> Porqué usar una base de datos relacional cualquiera,
> si podés usar PostgreSQL?
> -----------------------------------------------------------------
> Martín Marqués | mmarques@unl.edu.ar
> Programador, Administrador, DBA | Centro de Telematica
> Universidad Nacional
> del Litoral
> -----------------------------------------------------------------
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>