RE: [PHP] newbie question
| From: | Jay Blanchard | Date: | Tue, 24 Jun 2003 16:08:33 +0000 |
| Subject: | RE: [PHP] newbie question | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-152634@lists.php.net to get a copy of this message | ||
[snip]
I just setup php on my linux box and have been messing with a tutorial,
and have had some issues.
The tutorial says any name=value pairs in the querystring "automatically
creates a variable with the name and value the querystring indicated".
This does not seem to be happening.
I have installed:
RedHat 9.0
Mysql 4.0.13
PHP 4.3.2
[/snip]
It is because the tutorial is pre PHP 4.x where register_globals = off
in php.ini. Your form variables will be in either $_GET['variablename']
or $_POST['variablename'], or you can turn register_globals 'on'
HTH!
Jay