Enter button causing a problem
Posted on 2009-05-13
I have two buttons and a text box on my page.
The first button takes the user to the home page.
The text box records a value
and the second button submits the value to the database.
When I log onto the page and type a value in the text box and then press enter I get taken back to the home page. This is not what I want to happen.
I thought it was something to do with the tab order. so I change the tab order on the home page button to 2, the textbox to 0 and the submit button to 1.
When I press enter I still get taken back to the home page.
Can anybody help?