On Tuesday 16 April 2002 21:39, Tyler Longren wrote:
> 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.

in php.ini

 register_globals = on

-- 
Jason Wong -> Gremlins Associates -> www.gremlins.com.hk
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *

/*
squatcho, n.:
        The button at the top of a baseball cap.
                -- "Sniglets", Rich Hall & Friends
*/

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

Reply via email to