Forum Moderators: open

Message Too Old, No Replies

How to use image as submit button

         

Grenz

5:41 pm on Feb 9, 2009 (gmt 0)

10+ Year Member



Hi
I have a submit function that looks like this:

<input type='submit' name='newUser' value='Speichern'>

I want to use an image instead of the default submit button.

I've tried to do this:

<input type="image" src="/url" alt="test" name'NewUser' value="speichern">

It works great in Firefox but when testing it in Explorer, nothing happens when the image is clicked.

What am I missing?

Thanks in advance

Trace

7:19 pm on Feb 9, 2009 (gmt 0)

10+ Year Member



There is a missing = sign after name, however that should not affect the submit behavior. Problem is probably in the form declaration itself.

Most of the time, running your code through the validator will point you in the right direction.
[validator.w3.org...]