#20161 [Bgs]: php can not read the form variable
| From: | suming at eastday dot com | Date: | Wed, 30 Oct 2002 04:03:43 +0000 |
| Subject: | #20161 [Bgs]: php can not read the form variable | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-23682@lists.php.net to get a copy of this message | ||
ID: 20161
User updated by: suming@eastday.com
Reported By: suming@eastday.com
Status: Bogus
Bug Type: *General Issues
Operating System: win2000 pro,win xp pro
PHP Version: 4.2.3
New Comment:
I am sorry.
But thank you very much.
Previous Comments:
------------------------------------------------------------------------
[2002-10-29 21:59:41] 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 21:57:27] suming@eastday.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:53:52] 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:50:48] suming@eastday.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.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=20161&edit=1