How do we use image or flash button instead of submit button to post form data?
This might be a question for those who are unknown with the stuff of creating an image submit button.
You generally create a submit button for submitting/posting any form data. Instead you might be interested to place image inplace of submit button and you are not well known with how to do that.
If so you have come to the right place. Here I'll teach you on how to create an image submit button instead of submit button.
It's just a simple stuff to do with. Here you just need to do is change the input type to image and adding image.
<input type="submit" value="submit"> - just a submit button.
<input type="image" value="submit" src="images/image.png" alt="" border="0"> - Image submit button.
Note: Here src="images/image.png" refers that the image for submit button is located in images folder. And (style="width:41px;height:28px") you can change the width and height according to the need.
And that's all you need to do.
No comments:
Post a Comment
Thank you for your comment.