php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #21432 Can't get variables in php!
Submitted: 2003-01-05 10:13 UTC Modified: 2003-01-05 10:15 UTC
From: totalmeltdown at libero dot it Assigned:
Status: Not a bug Package: Variables related
PHP Version: 4.3.0 OS: windows 98
Private report: No CVE-ID: None
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
45 + 42 = ?
Subscribe to this entry?

 
 [2003-01-05 10:13 UTC] 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!

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-01-05 10:15 UTC] 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.


 [2004-08-16 17:47 UTC] benson at hotmail dot com
I faced the same problem before

But after I add the statement:
$variable=$_GET["variable"];
the problem is solved
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Oct 31 23:01:28 2024 UTC