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 bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

URGENT!!!: submit problem

Status
Not open for further replies.

mk2lee1

MIS
Jul 8, 2003
51
US
When there is a form, clicking enter on the keyboard while in the last textbox does not activate the submit button, instead it just refreshes the page.

Thank you.
 
Hitting enter in a form usually executes the action="" command in the <form> tag. If no action is specified, script assumes action is the page itself, thus refresh. But without seeing your code it is hard to tell.
 
Several scenarios:
1. IE: form action is missing, pressing enter submits to the script itself.
NS/Mozilla: Doesn't do anything.
2. Script assumes that there is a variable for the submit button. This is not the case when ENTER is used. Solution: Set a hidden field and check for that.

If it's none of these, post your code please.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top