Re: Problem passing variables

From: Date: Sat, 14 Sep 2002 11:44:53 +0000
Subject: Re: Problem passing variables
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-21756@lists.php.net to get a copy of this message
I'm not sure but my guess is that you have REGISTER_GLOBALS switched to off in php.ini. If so you got to options: 1. Turn it on, but this is not a good way. 2. Use arrays, I thing their' re called super arrays or somethig like that. You can use them like that $_GET['variable'], and the same with $_POST, $_REQUEST, $_SESSION, $_FILES. This is better way. Achilles Maroulis wrote in message > I have installed Apache 2.0, PHP 4.2.1 and MySQL 3.20 on Windows 2000 > Proffessional. > Everything was succesfully installed with the setup programs with just a > little manually exception instaling PHP where I had to insert some lines to > httpd.conf in order to have Apache recognising .php files. > > My problem is that when I pass a variable into another page (both ways: form > and url) the new page doesn't recognize any variables. > Sessions are also not working while I also get an 'Undefined variable' > notice at 'if($var_name)' when $var_name isn't predefined. > > I guess I must have missed something at the PHP setup. > Can someone suggest something? > Why did it all work just fine when setting up on Linux? > > Thanx in advance... > Achilles > >

« previous php.db (#21756) next »