Re: Variables don't pass... *sniff*

From: Date: Wed, 28 May 2003 09:40:25 +0000
Subject: Re: Variables don't pass... *sniff*
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-149209@lists.php.net to get a copy of this message
RegisterGlobals = Off You need to access these variables by $_POST[aVariable] or in your case ( adding the variables to the end of a URL means you are using the GET method: $_GET[aVAriable] etc. On Wed, 2003-05-28 at 11:37, daniel@rhesusb.dk wrote: > Hi all! > > I'm using Apache 2.0.45, PHP 4.3.2RC4, and MySQL 3.23.49 on Windows 2003 > Server Standard. > > I have a problem passing variables between pages. They simply get lost. > Neither GET nor POST pass values, and even "hardcoding" them into the URL, > like > > htpp://localhost/comeon.php?aVariable=ding&anotherVariable=dong > > and putting this in comeon.php: > > echo("Values: $aVariable, $anotherVariable"); > > only outputs > > Values: , > > ...I've tried with RC3 of PHP, even 4.3.1, but it doesn't work. I've used > PHP on my machine with Apache 2 before, and it worked fine. Actually I used > the same scripts fine on my old config. This was on XP however, so I'm not > sure if it's got something to do with the OS. I'm hoping it's a > configuration issue. > > Any ideas are VERY much appreciated =). > > Thanks, > Daniel > > > » There are 10 kinds of people - those who know binary and those who don't. > « >

« previous php.general (#149209) next »