#21432 [Com]: Can't get variables in php!
ID: 21432
Comment by: benson at hotmail dot com
Reported By: totalmeltdown at libero dot it
Status: Bogus
Bug Type: Variables related
Operating System: windows 98
PHP Version: 4.3.0
New Comment:
I faced the same problem before
But after I add the statement:
$variable=$_GET["variable"];
the problem is solved
Previous Comments:
------------------------------------------------------------------------
[2003-01-05 10:15:11] rasmus@php.net
In PHP 4.2.0, the 'register_globals' setting default changed to
'off'. See http://www.php.net/release_4_2_0.php for more info.
We are sorry about the inconvenience, but this change was a necessary
part of our efforts to make PHP scripting more secure and portable.
------------------------------------------------------------------------
[2003-01-05 10:13:26] totalmeltdown at libero dot it
I don't know why...but i have a problem with the variables: i am using
lastest version of apache 2.0.43 (but the problem there was also with
1.3.22).
The problem is that variables in url (script.php?variable=1234 for ex.)
and in post method then are not in php (if i write echo $variable php
says that $variable is empty). But using phpinfo() i can see the
variable...
What a bug!! (And it's very strange that phpmyadmin works
correctly!!!)
See you and tnx!
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=21432&edit=1
Thread (3 messages)