PHP 4.0 Bug #4477: Form fields not present as variables after submit
| From: | zdoorduy at xs4all dot nl | Date: | Wed, 17 May 2000 07:50:19 +0000 |
| Subject: | PHP 4.0 Bug #4477: Form fields not present as variables after submit | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-18853@lists.php.net to get a copy of this message | ||
From: zdoorduy@xs4all.nl
Operating system: Windows 2000 Prof.
PHP version: 4.0 Release Candidate 2
PHP Bug Type: Scripting Engine problem
Bug description: Form fields not present as variables after submit
System: PIII 550, Win2K Prof. 128 mb. IIS5, MySQL shareware 3.22.34, PHP 4.0rc2
After a form submit through either a get or post, the form variables are empty.
form:
<form action=submitform.php method=GET>
First Name: <input type=text name=first_name size=25 maxlength=25>
Last Name: <input type=text name=last_name size=25 maxlength=25>
<p>
<input type=submit>
</form>
and submitform.php contains:
<?php
mysql_connect ('10.1. . ', '', '');
mysql_select_db (testbase);
mysql_query ("INSERT INTO names (first_name, last_name)
VALUES ('$first_name', '$last_name')
");
print ($first_name);
print (" ");
print ($last_name);
print ("<p>");
print ("Thanks for submitting your name.");
?>