Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Form submits when user presses enter on any field - how do I stop this

Status
Not open for further replies.

Laura2

IS-IT--Management
Aug 13, 2002
99
US
I have created a form that updates a database when the user submits. The problem is that my fields are not validated and don't need to be. When the user presses enter anywhere on the form, it automatically brings them to the confirmation page. How do I prevent this from happening and make the submit button the only one that can go to the confirmation page? I do not want to make my other fields mandatory.

Thanks in advance for your help.

Laura.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top