php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #20161 php can not read the form variable
Submitted: 2002-10-29 21:50 UTC Modified: 2002-10-29 22:03 UTC
From: suming at eastday dot com Assigned:
Status: Not a bug Package: *General Issues
PHP Version: 4.2.3 OS: win2000 pro,win xp pro
Private report: No CVE-ID: None
 [2002-10-29 21:50 UTC] suming at eastday dot com
I install php4.2.3,apache1.3.26,mysql3.23.51 in os windows2002 professional and windows xp professional.
There is nothing error in my script .php document if i not use the form variable. But php can not read the form variable.
Below is my test file??
<?php
if (isset($submit))
{
	echo "Submit is=".$test;
}
echo "Test is=".$test;
?>
<html>
<head>
</head>
<body>
<form name="frm" action="index.php" method="post" >
<input type="text" name="test">
<input type="submit" name="submit" value="submit">
</form>
</body>
</html>

when i type "PHP.net" in the text field,and click the button "submit",IE5.0(or IE 6.0)only print "Test is=",
this indicate that the form variable can not read by php.
BUT the soft phpmyadmin is work  well using the form variable ,i can not differ from the two script between me and phpmyadmin's. 

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-10-29 21:53 UTC] iliaa@php.net
Sorry, but your problem does not imply a bug in PHP itself.  For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system is not the
appropriate forum for asking support questions. 

Thank you for your interest in PHP.

turn on register_globals or use $_POST['test']
 [2002-10-29 21:57 UTC] suming at eastday dot com
the same script above is work well when i use php4.0.5 instead of php4.2.3 (others is fixed).
 [2002-10-29 21:59 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.


 [2002-10-29 22:03 UTC] suming at eastday dot com
I am sorry.
But thank you very much.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Fri Aug 15 11:00:02 2025 UTC