Learning C
Learning C

Reputation: 689

Why won't type image work?

I'm trying to use a type="image" for a submit button. Not it is not working.

<input type="image" SRC="http://bin.xxx/images/free_download_continue.png" name="method_free" value="Free Download">

will not work for

<input type="submit" name="method_free" value="<TMPL_VAR lang_free_download>">

When I do this I http://jsfiddle.net/DXBgp/ get an error

but when I do this http://jsfiddle.net/EFjbx/ it works

Upvotes: 0

Views: 106

Answers (1)

Cosmin Atanasiu
Cosmin Atanasiu

Reputation: 2664

Well I think you got them mixed up, http://jsfiddle.net/DXBgp/ works and http://jsfiddle.net/EFjbx/ doesn't, correct ?

Check out this question at: how to set background image in submit button?. You should just be able to add a background image using CSS on the button.

Upvotes: 1

Related Questions