dcsimg
Login | Register   
RSS Feed
Download our iPhone app
TODAY'S HEADLINES  |   ARTICLE ARCHIVE  |   FORUMS  |   TIP BANK
Browse DevX
Sign up for e-mail newsletters from DevX

By submitting your information, you agree that devx.com may send you DevX offers via email, phone and text message, as well as email offers about other products and services that DevX believes may be of interest to you. DevX will process your information in accordance with the Quinstreet Privacy Policy.


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

WEBINAR:

On-Demand

Application Security Testing: An Integral Part of DevOps


Make an Image Act as a Submit Button

Question:

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?

Answer:

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.

 

 

Sitemap
×
We have made updates to our Privacy Policy to reflect the implementation of the General Data Protection Regulation.
Thanks for your registration, follow us on our social networks to keep up-to-date