PHP Form Image

Description

An image field works like a submit button, but allows you to use your own button graphic instead of the standard gray button.

You specify the URL of the button graphic using the src attribute, and the graphic's width and height in pixels with the width and height attributes.

As with the submit button, the value attribute contains the value that is sent to the server when the button is clicked:


<label for="imageField">An image field</label> 
<input type="image" name="imageField" id="imageField" value="" 
      src="asterisk.gif" width="23" height="23" /> 




















Home »
  PHP Tutorial »
    Form »




PHP Form
Form Demo