Forum Moderators: phranque
Ok I have a form it has 3 hidden form elements one text box and one submit button. The submit button is a regular input type="submit"> tag. When I click the submit button it takes the action and sends the value of the submit button along with all the other form elements. No problem
Now when the form has focus and you hit enter on the keyboard it sends the all the form elements EXCEPT it does not send the submit button along with the posted information that was contained withen the form.
Now because the subsiquent form checks to see what the value of the submit button that accompanied the form to decide on what action to take, it is totally messing up.
What I had to do was add another hidden form element and gave it a name and a value that I could check against rather than checking the value of the submit button, and it works now! Clicking or hitting enter!
What causes the submit button, which is a form element, to not get passed with the rest of the form when the enter button is hit rather than clicking the submit button directly?