Click to See Complete Forum and Search --> : Input type image not working with some clients


Desdinova
08-25-2008, 06:13 AM
Goodmorning,

I'm having this weird issue. A simple contactform using a <input type="image"> seems to be giving problems with some clients. Some people complain they can't click on the image, as if it's just an image and not something you should be clicking on. In other words, when they click it, nothing happens ..

I have tried it myself, with FF, IE6, IE7, but everything is working properly. Does anyone know what might cause this problem? and how it can be solved? All HTML is valid, there's a src, type and alt attribute within the input.

bradmasterx
08-25-2008, 07:50 AM
might be the clients settings,

<input name="theName" type="image" value="VALUE" src="img.png" />

Desdinova
08-25-2008, 10:29 AM
Yes I've thought about that, but it seems odd that quite a few people are experiencing this issue. I've had about 4 reports so far. I can try adding the name and value attribute, maybe it'll do things. otherwise I'll just have to CSS a submit button, but that has it's downsides on safari I believe.

NogDog
08-25-2008, 06:13 PM
I generally prefer to use a <button> element:

<button type="submit" name="submit id="submit"><img src="image.png"
width="50" height="20" alt="Submit" /></button>

You may need to do a little styling of the button to get rid of any border and/or background.