Jump to content
xisto Community
Sign in to follow this  
SaNJ

How To Make Image Buttons Act As Submit Button

Recommended Posts

Just make a regular button with an image in it... eg.

<button><img src="image.png" width="69" height="63" /></button>

Put that in a form like you would a regular submit button and ur good to go!

Share this post


Link to post
Share on other sites

Add this code in your <form></form> where you are writing your button code

<input type="image" src="limage.png" />
Its working in my form

Share this post


Link to post
Share on other sites

To make an image into a 'Back button' the following is all that is required. No form tags are needed.

<a href="javascript:history.back(1)" title="Back"><img src="My_Picture.jpg" alt="Back" border="0"></a>

I don't know where the Javascript code comes from :) as I don't know anything about Javascript. It's just something I picked up from somewhere.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.