Re: Cannot read variables

From: Date: Tue, 06 Jun 2006 08:33:26 +0000
Subject: Re: Cannot read variables
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-237451@lists.php.net to get a copy of this message
On Tue, 6 Jun 2006 10:36:12 +0300, you wrote: >I just set up a test box for PHP/MySQL on a WinXP box and now I'm having >trouble with variables passed to browser from a link. > >For example I have a link that outputs this: >http://localhost/index.php?team=CF10b. Now the CF10b cannot be >user in the >code like it should. > >I turned to Register Globals on in the php.ini but that didn't help. Any >ideas? Most likely you didn't turn RG on (typo? wrong php.ini?), or didn't restart. Try: print_r ($_POST); print_r ($_GET); print_r ($_REQUEST); to see if your variable is being passed. If it is, PHP isn't set up as you want it. If it isn't, there's something more fundamental wrong. -- http://www.otton.org/

« previous php.general (#237451) next »