Bug #17463 Updated: Form Error

From: Date: Mon, 27 May 2002 19:18:26 +0000
Subject: Bug #17463 Updated: Form Error
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-8690@lists.php.net to get a copy of this message
ID: 17463 Updated by: derick@php.net Reported By: sarev0k@bigfoot.com -Status: Open +Status: Bogus Bug Type: Scripting Engine problem Operating System: All PHP Version: 4.2.0 New Comment: This is not a bug in PHP, but more a browser issue. Some browsers (IE5 being one) simply don't set the sumbit field if you press enter. And you are already giving the solution, add a hidden field and check for that on submission. Derick Previous Comments: ------------------------------------------------------------------------ [2002-05-27 14:50:55] sarev0k@bigfoot.com http://seazbounty.castledragmire.com/bugs/formbug.php reproduces the problem. To produce the problem, type in anything to the textbox and press enter. You will notice nothing happens, now type something in and click the submit button. It now works. I have reproduced this bug on windows and linux platforms, so it is not a browser problem. Here's that scripts source code: <?php //formbug.php print $_SERVER["SERVER_SIGNATURE"]."\n"; if(!isset($_POST["submit"])) { print "type in anything to the text box and press enter"; print "<form name=login action=".$_SERVER["PHP_SELF"]." method=post>\n"; print "<input type=text name=blah>\n"; print "<input type=submit name=submit value=submit>\n"; print "</form>\n"; } else { print "Pressing enter didn't work did it!<br>"; print "Bug is solved when having more than one field in a form, other than the submit button."; } ?> ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=17463&edit=1

« previous php.bugs (#8690) next »