Re: How to pass on a variable with a page request

From: Date: Wed, 22 Nov 2000 10:39:41 +0000
Subject: Re: How to pass on a variable with a page request
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-26606@lists.php.net to get a copy of this message
Hi ! This is the right code for you Bruno <?php print "<br>GET:".$HTTP_GET_VARS[user]; print "<br>POST:".$HTTP_POST_VARS[user]; print "<br>INTERNAL:".$user; ?> Lawrence, don`t you know tha basic array syntax??? $array[ ] ? Michal ~ Bruno Tersago wrote: > Yes, track_vars is indeed turned on in my php config. > The code of my test.php is: > > <html> > <head> > <title>test</title> > </head> > > <body bgcolor="#ffffff"> > <p> > <?php > print "<br>GET:".$HTTP_GET_VARS ("user"); > print "<br>POST:".$HTTP_POST_VARS ("user"); > print "<br>INTERNAL:".$user; > ?> > </body> > </html> > > And in my browser, I enter the address > http://euclides.fhw.gr/test.php?user=Bruno > > I read through the manual, but I can't figure out what is wrong, > because the > php configuration seems to be OK.-- Bruno >

« previous php.general (#26606) next »