Form should get submitted only when Submit button pressed..

Discussion in 'HTML & Website Design' started by toughguy, Mar 27, 2007.

  1. #1
    Hi Friends,
    I have a peculiar problem.. I have a form in a page.. When ever user hits enter key the form gets submitted irrespective of where the focus is.. But I want the form to be submitted ONLY when Submit button is clicked or When enter key is pressed with Focus on the submit button.

    Can some buddy help me how can i restrict the user surely click on Submit button to submit the form.

    Thanks a lot,
     
    toughguy, Mar 27, 2007 IP
  2. jgjg

    jgjg Peon

    Messages:
    595
    Likes Received:
    14
    Best Answers:
    0
    Trophy Points:
    0
    #2
    did you use software to add this form? if so, which software? this seems abnormal.
     
    jgjg, Mar 29, 2007 IP
  3. rgchris

    rgchris Peon

    Messages:
    187
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Do you have a sample of the code?
     
    rgchris, Mar 29, 2007 IP
  4. tkilgore

    tkilgore Well-Known Member

    Messages:
    1,075
    Likes Received:
    29
    Best Answers:
    0
    Trophy Points:
    160
    #4

    Sounds like you have more than one form tag .. check to make sure the file is cued right.
     
    tkilgore, Mar 29, 2007 IP
  5. weknowtheworld

    weknowtheworld Guest

    Messages:
    306
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Please paste your code here so i can help you out....
     
    weknowtheworld, Mar 29, 2007 IP
  6. fun4seo

    fun4seo Guest

    Best Answers:
    0
    #6
    I think So,NEED the code
     
    fun4seo, Mar 30, 2007 IP
  7. toughguy

    toughguy Well-Known Member

    Messages:
    846
    Likes Received:
    26
    Best Answers:
    0
    Trophy Points:
    118
    #7
    Hi,
    I don't use any software.
     
    toughguy, Mar 30, 2007 IP