php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #17942 Cannot retrieve form variable
Submitted: 2002-06-24 07:29 UTC Modified: 2002-06-24 07:30 UTC
From: stooi at shop-streets dot com Assigned:
Status: Not a bug Package: Scripting Engine problem
PHP Version: 4.2.1 OS: Windows
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: stooi at shop-streets dot com
New email:
PHP Version: OS:

 

 [2002-06-24 07:29 UTC] stooi at shop-streets dot com
The problem with it is it does not capture form variables.

E.g I have a form call form.php with form element named id, K and D. the form post these variables to form_post.php. in the form_post.php, I need the variables, id, K and D and try to refer to it as $id, $K and $D, but nothing works.

Thanks.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-06-24 07:30 UTC] derick@php.net
In PHP 4.2.0, the 'register_globals' setting default changed to
be 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.
 [2002-12-22 12:53 UTC] slschiff at yahoo dot com
Regarding PHP & IIS 5.1

If I set register_globals to On, PHP accepts form variables.
If not, it accepts : $HTTP_POST_VARS["UserName"] 

However, this only when I set PHP up using the php.exe file, which, to my knowledge, makes it an insecure CGI program.  Is it a security risk using that install method? If so, then how do I make PHP accept form input as an Isapi filter??
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Wed Jul 02 11:01:36 2025 UTC