Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
Form submitting when ENTER is hit?? Can this be de-activated?
Old 04-02-2008, 02:47 PM Form submitting when ENTER is hit?? Can this be de-activated?
Novice Talker

Posts: 11
Name: Nicolas Copia
Location: Las Vegas
Trades: 0
I am finished building this form:

http://www.liveindierockwars.com/discount.html

I noticed while the end-user is filling out the form, if they accidentally hit enter it will submit the form. While this form does have massive validation on it ....I would still like to make ENTER disabled to where they HAVE to click the "Purchase Tickets" button. Is there any code I can add to my submit button to accomplish this? Thank you in advance!
Nick5185 is offline
Reply With Quote
View Public Profile Visit Nick5185's homepage!
 
 
Register now for full access!
Old 04-02-2008, 03:37 PM Re: Form submitting when ENTER is hit?? Can this be de-activated?
Novice Talker

Posts: 11
Name: Nicolas Copia
Location: Las Vegas
Trades: 0
found the answer..... like i usually do, I should start going to forums last

onkeypress=”return event.keyCode!=13″

that needs to be added into your form
Nick5185 is offline
Reply With Quote
View Public Profile Visit Nick5185's homepage!
 
Reply     « Reply to Form submitting when ENTER is hit?? Can this be de-activated?
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.12344 seconds with 12 queries