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

Enter not submit

Status
Not open for further replies.

Mariano01

Programmer
Joined
Jan 11, 2006
Messages
4
Location
AR
I need a submit button, (must be submit type), but when I press enter, the form can´t be sended yet.
Can this be done?

Thanks

Mariano Carpentier
 
Do you want it to only submit if someone actually clicks the button?
 
Yes!, but I need it to be a submit type.
 
Why does it HAVE to be a submit type? What's wrong with:

<input type='button' value='Submit' onclick='this.form.submit()' />

Dave

P.S., 'not sure if this.form.submit() actually works, but something LIKE that, anyway.


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
O Time, Strength, Cash, and Patience! [infinity]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top