views:

37

answers:

1

I didn't realize this, and just want to confirm.

If I have a html form, and an input tag of type image like:

<input type="image" name="blah" src="..." />

Clicking on the image will submit the form?

My use case is, I want to create a custom button for a submit button.

+1  A: 

Yes, input-images will submit the form naturally. See: http://w3schools.com/tags/att_input_type.asp

image: Defines an image as a submit button

Jonathan Sampson