setting form button as default when pressing ENTER

Discussion in 'PHP' started by tsabar, Jan 20, 2006.

  1. #1
    created a form but when i fill out the form and hit enter it just refreshes the php (php). i have to actually click SUBMIT in order to submit the form instead of hitting ENTER.

    how can i set the SUBMIT button as the default when hitting ENTER?

    thx!
    o
     
    tsabar, Jan 20, 2006 IP
  2. dave487

    dave487 Peon

    Messages:
    701
    Likes Received:
    20
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Post the url and php source code.
     
    dave487, Jan 20, 2006 IP
  3. rossriley

    rossriley Guest

    Messages:
    25
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #3
    If you're using IE and have more than one form on the page this is a bug in the software. Most other browsers will submit the form that has focus, IE won't.

    Not sure if this is the case but it could be your problem.

    Ross
     
    rossriley, Jan 20, 2006 IP