简体   繁体   中英

Image Submit Not working in IE

I have the following code submitting a form

<div class="free-download">
   <input name="method_free"
      value="<TMPL_VAR lang_free_download>"
      type="image"
      src="images/free-download.png"
      alt="<TMPL_VAR lang_free_download>" />
</div>

it's working fine in firefox, but in internet explorer it just loads the same page for some reason, any ideas?

Thanks

Try the form attribute in the input tag.

<input type="image" form="(ID of the form it belongs to)">

Sometimes inputs can get lost in layouts.

Have you checked to see if you are getting method_free_x and method_free_y posted back to you? Seems when using an image to submit, you get the X and Y coordinates that were clicked.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM