php-db | 2002091

[PHP-DB] Re: Problem passing variables From: Bartosz Matosiuk (madsiuk <email protected>)
Date: 09/14/02

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
>
>

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php