Sunday, January 19, 2014

Html>> Image tags - HTML form with submit button as image - (PART_51)

Topic: How to submit a form using image as button?
            Html Button style. 

Code:
<form name="hiox" action="index.php" method="POST">
<div align="center"> Name:<input type="text" size="25" name="name"><br>

<input type="image" src="submit.gif" name="image" width="40" height="40">
</div>
</form>

Result:


Name:


name - defines an internal name to the button.

type - defines the input type(text,image,etc,.)

src - defines the URL of the image.

width - defines the width of the image.

height - defines the height of the image.