Login | Register   
RSS Feed
Download our iPhone app
Browse DevX
Sign up for e-mail newsletters from DevX

Tip of the Day
Language: Active Server Pages (ASP)
Expertise: Beginner
Jan 24, 2000



Full Text Search: The Key to Better Natural Language Queries for NoSQL in Node.js

Make an Image Act as a Submit Button


I'm trying to make a small image at the bottom of each form submit information from my database to the user when the user presses on it. However, I don't want to use an actual submit button because it is too big—it needs to be a small image that acts as a submit button. How can I make an image act like a submit button for a form?


You know how to make a regular submit button:

This code will provide a standard command button with the caption, "Click Me". When the user clicks on it, the form will be submitted.

To replace the button with an image, use this code:

This code will make your image act as a submit button. Clicking on the image will submit the form. By default, Netscape will place a border around the image. If you do not want a border, then add the attribute BORDER="0" to the tag.

DevX Pro
Comment and Contribute






(Maximum characters: 1200). You have 1200 characters left.



Thanks for your registration, follow us on our social networks to keep up-to-date