#1
  1. No Profile Picture
    tobymiller
    Guest
    Devshed Newbie (0 - 499 posts)
    This is driving me insane. I have a form that has multiple forms inside it and I'm using image buttons instead of form buttons for the various submits. The problem is that if you have the cursor inside one of the fields and hit enter, it submits the form. So how do I make sure that it doesn't submit unless they click one of the buttons?

    Thanks,

    Toby
  2. #2
  3. No Profile Picture
    Bjoern
    Guest
    Devshed Newbie (0 - 499 posts)
    Hi toby!

    Just dont use any submit buttons at all.
    You can make a link (with image) and call a JS function wich calls the submit method of the form
    I just put this together now but i should look something like this:
    function submit_myform (formname) {
    eval("document." + formname + ".submit);
    }

Similar Threads

  1. [JS] Enable/disable submit button
    By mrbomb in forum HTML Programming
    Replies: 15
    Last Post: February 29th, 2004, 09:59 AM
  2. bypassing submit
    By elyk in forum PHP Development
    Replies: 4
    Last Post: August 5th, 2003, 02:40 AM
  3. post without user hitting submit button
    By toddschw in forum PHP Development
    Replies: 2
    Last Post: July 15th, 2002, 07:10 PM
  4. submit with button and submit with image
    By yoshimitsu in forum HTML Programming
    Replies: 2
    Last Post: February 24th, 2002, 05:31 PM
  5. Creating a submit button that does not submit
    By DeNasio in forum HTML Programming
    Replies: 1
    Last Post: August 10th, 2001, 06:43 PM

IMN logo majestic logo threadwatch logo seochat tools logo