RE: [PHP] Re: really simple problem with GET

From: Date: Wed, 12 Mar 2003 19:07:22 +0000
Subject: RE: [PHP] Re: really simple problem with GET
Groups: php.general 
Request: Send a blank email to php-general+get-139360@lists.php.net to get a copy of this message
Yeah it worked... thanks everyone! -----Original Message----- From: Jan Grafström [mailto:jan@lillemanshus.com] Sent: Wednesday, March 12, 2003 2:02 PM To: php-general@lists.php.net Subject: [PHP] Re: really simple problem with GET Try ...test.php?test=0 //no $ before test= /Jan "Kelvin Poon" <kpoon@infomart.ca> skrev i meddelandet news:EADAFF8E8B62D51197720002A560B35E058CFD0D@hdo-exchange.corporate.southam .ca... > Hi, > > I am sorry if the level of this question is too simple but I can't figure > out what's wrong. I want to pass a variable value through the URL using the > Get method. > > FOr example http://......./test.php?$test=0 > > and my test.php code are as follow: > > <html> > <body> > <?php > > if (!empty($_SERVER)) > extract($_SERVER); > > if (!empty($_GET)) { > extract($_GET); > } else if (!empty($HTTP_GET_VARS)) { > extract($HTTP_GET_VARS); > } > > if (!empty($_POST)) { > extract($_POST); > } else if (!empty($HTTP_POST_VARS)) { > extract($HTTP_POST_VARS); > } > > echo "hello $test"; > ?> > > > </body> > </html> > > > BUt my outcome is > > hello > > so therefore my $test variable isn't passing through, does anybody know what > I did wrong? > > Thanks > > Kelvin > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

« previous php.general (#139360) next »