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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: totalmeltdown at libero dot it
New email:
PHP Version: OS:

 

 [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-2025 The PHP Group
All rights reserved.
Last updated: Thu Jul 03 11:01:34 2025 UTC