Re: pass variable to PHP

From: Date: Wed, 04 Apr 2001 05:41:35 +0000
Subject: Re: pass variable to PHP
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-46983@lists.php.net to get a copy of this message
Yup, as Chris said it's register.globals that's the entry in your php.ini file. In my php.ini it's on line 200 (without wordwrap), and it will probably look like: register_globals = Off ; Whether or not to register the EGPCS variables as global In yours. Change the value to On and you should be all set. If it's an older version of PHP you also need track_vars enabled, but in 4.0.3 and up it's automatically enabled. -- Plutarck Should be working on something... ...but forgot what it was. ""HK Woo"" <hkwoo@netvigator.com> wrote in message news:9aeb6e$ecn$1@toye.p.sourceforge.net... > Hi, Plutarck > > Thank You for your help. > > I would like to know how to turn on the feature to let PHP to separate the > variable by GET/POST > > Thank You! > > HK Woo > ""Plutarck"" <aemuli@spamclause-yahoo.com> wrote in message > news:9ae7sf$f96$1@toye.p.sourceforge.net... > > Try using a print_r($HTTP_GET_VARS) and see what comes up. > > > > It could be that PHP has been set not to turn GET/POST variables into > > seperate values. > > > > If so you'll need to use: > > > > echo $HTTP_GET_VARS[testing]; > > > > > > -- > > Plutarck > > Should be working on something... > > ...but forgot what it was. > > > > > > > > ""HK Woo"" <hkwoo@netvigator.com> wrote in message > > news:9ae7ba$9n3$1@toye.p.sourceforge.net... > > > Hi, > > > > > > I have written a html which contains a form and then I use a "GET" > method > > to > > > pass a variable to PHP program with > > > http://xxx.xxx.xxx.xxx/test.php?testing=testing. > > > However, I can't get > the > > > variable testing by using "echo $testing". > > > > > > I don't know what is the problem. > > > > > > Thank You! > > > > > > HK Woo > > > > > > > > > > > > -- > > > PHP General Mailing List (http://www.php.net/) > > > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > > > For additional commands, e-mail: php-general-help@lists.php.net > > > To contact the list administrators, e-mail: php-list-admin@lists.php.net > > > > > > > > > > > -- > > PHP General Mailing List (http://www.php.net/) > > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > > For additional commands, e-mail: php-general-help@lists.php.net > > To contact the list administrators, e-mail: php-list-admin@lists.php.net > > > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net >

« previous php.general (#46983) next »