Forum Moderators: open

Message Too Old, No Replies

Image as Submit Button

how to make it work...

         

newnewbie1

7:33 pm on Nov 27, 2002 (gmt 0)

10+ Year Member



HI!

I've got a form with a submit button on it:
<input type="Submit" name="ecmsubmit" value="Search">

How can I replace this submit button with an image that will submit the form...

I didn't think it was that hard to do, but I've been round & round with this, and can't get it to work!
Thx!

seindal

7:58 pm on Nov 27, 2002 (gmt 0)

10+ Year Member



Just use

<input type="image" src="image.gif" alt="alt text" name="ecmsubmit">

Read more on
[htmlhelp.com...]

René.

moonbiter

8:00 pm on Nov 27, 2002 (gmt 0)

10+ Year Member



<input type="image" id="submit" src="your_submit_image.png" alt="Submit" />

See the HTML 4.01 recommendation [w3.org] for why this works.

On review: What Seindal said!

newnewbie1

8:59 pm on Nov 27, 2002 (gmt 0)

10+ Year Member



Cool! I got it to work!