In the script below, the reset button acts also like a submit button. Where could the problem be? Thanks.
<input type="image" name="submit" value=" " src="image.png"> <input type="image" name="reset" value=" " src="reset.png">
Thanks for your time.
Inputs of type image always act like submit buttons.
The problem is that by definition
<input type="image" />
defines submit button.
That is the intended behavior.
The input element with a type attribute whose value is "image" represents either an image from which the UA enables a user to interactively select a pair of coordinates and submit the form, or alternatively a button from which the user can submit the form.
To make a reset button you should use
<input type="reset" value="Reset">
type="image" acts like submit button.