Page 1 of 1

problem with enter key

Posted: Wed Oct 20, 2004 7:46 am
by irealms
I have a simple search form and when you press the enter key it doesn't activate the button just makes the text in search field blank, any ideas?

Posted: Wed Oct 20, 2004 8:22 am
by feyd
your form processor (likely that page) is looking for the submit button. When pressing enter, the submit button is not sent. Switch the form processing to look for the search text field.

Posted: Mon Oct 25, 2004 11:33 am
by dragnlo
Easiest fix will probably be to put a a hidden field on the form named submit

Code: Select all

<input type=hidden name=submit value=submit>
<input type=submit name=submit value=submit>
This is also usefull if your submit button is an image.