PDA

View Full Version : Variables don't work ?!


pegasus
Sat 25th Oct '03, 12:13pm
I have installed APACHE + PHP + MYSQL on my little Linux server. Every thing worked out just fine. Accept for the variables ?! I used a simple form wich send a variable "name=test" to a simple php-page "testpage.php". This is the code of the php-page:

<? echo $test; ?>

I expected that the variable was printed, but all I get a blanc page ?! Also when I type testpage.php?test=123

Does someone know how this is possible ?

Chen
Sat 25th Oct '03, 12:37pm
Use $_REQUEST['test'].

http://us2.php.net/register_globals