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
[EMAIL PROTECTED]
www.captainjack.com

----- Original Message -----
From: "Martín Marqués" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
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                  |        [EMAIL PROTECTED]
> 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
>
>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to