Skip to main content
Participant
October 26, 2006
Question

Form validation and image buttons

  • October 26, 2006
  • 1 reply
  • 219 views
Hello
I am trying to create a wizard interface and need to jump from one for to another and back again.

I have been using images instead of buttons to accomplish this, but I have hit a problem. If I submit a form using the following JavaScript I cannot use the standard form validation or Yaromat.

javascript:document.form1.submit()

When the image is clicked the form just submits without validating the form.

I could use form buttons but I some times need a number of buttons on a form. Many of them will simply jump to other pages passing URL Parameters.

Any advice will be appreciated I suppose I need a way of getting the validation to work or a way of using buttons within an existing form to simply hyperlink to another page.

Cheers
This topic has been closed for replies.

1 reply

Inspiring
October 26, 2006
Use an image button.

<input type="image">

--
Jules
http://www.charon.co.uk/charoncart
Charon Cart 3
Shopping Cart Extension for Dreamweaver MX/MX 2004