Why type="image" can't work under IE?


 $html .= '<div id="submit"><input type="image" name="subscribe" onmouseover="this.src=\\'images/1_hv.jpg\\'" onmouseout="this.src=\\'images/1.jpg\\'" src="images/1.jpg"  value="'.$data["button"].'" onClick="return checkform();"></div> '; 


why the type=“image” code can’t work under IE? when i click the image under IE, it can’t work. it can’t submit the form. but under firefox and chrome.it can work. how to correct it ?
when i change the input into


<input type="submit" name="subscribe" value="'.$data["button"].'" onClick="return checkform();">

when under IE,firefox,chrome. all can work

type=image makes the input behave like a submit button. Try putting the onclick code into the form’s onsubmit instead, where it should be.

i don’t know " Try putting the onclick code into the form’s onsubmit instead, where it should be" how to do this ,could you give me more detalis

This tute should help

it still can’t work under IE,when i put the onclik in the <form onSubmit…>

you’ll need to post your code and not just snippets of it.

The only other thing that might be confusing you about type=“image” is that it passes two values when the form is submitted corresponding to the position in the image that was clicked rather than the one value a regular type-:submit" passes/