anders2002
MIS
Hi,
Bit of an odd problem: I have a simple form with a text field, and next to it a 'Submit' button. When entering text into the field and pressing the carriage return button on my keyboard the text field goes blank and nothing is submitted.
It is only when I click the Submit button with the mouse cursor that the submit is actioned correctly. Can anyone suggest why this may be the case?
The code for the form is here:
print "
<p><strong><font size=\"2\" face=\"Arial, Helvetica, sans-serif\">Please enter a search string (min 3 chars)</font></strong></p>";
print "<form method=\"POST\">";
print "<input type\"text\" name=\"Searchstring\"</strong></font>";
print " <input type=\"submit\" name=\"searchsubmit\" value=\"Submit\">";
print "</form><p>";
Thanks,
Anderz
Bit of an odd problem: I have a simple form with a text field, and next to it a 'Submit' button. When entering text into the field and pressing the carriage return button on my keyboard the text field goes blank and nothing is submitted.
It is only when I click the Submit button with the mouse cursor that the submit is actioned correctly. Can anyone suggest why this may be the case?
The code for the form is here:
print "
<p><strong><font size=\"2\" face=\"Arial, Helvetica, sans-serif\">Please enter a search string (min 3 chars)</font></strong></p>";
print "<form method=\"POST\">";
print "<input type\"text\" name=\"Searchstring\"</strong></font>";
print " <input type=\"submit\" name=\"searchsubmit\" value=\"Submit\">";
print "</form><p>";
Thanks,
Anderz