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" /> 

Next chapter...

What you will learn in the next chapter:

  1. What is form field
  2. Example - PHP Form Hidden Field
Home » PHP Tutorial » PHP Form
PHP HTML Forms
PHP GET and POST
PHP Form Elements
PHP Form TextField
PHP Form Password Field
PHP Form Textarea
PHP Form CheckBox
PHP Form Select
PHP Form RadioButton
PHP Form Submit
PHP Form Reset
PHP Form Push Button
PHP Form Image
PHP Form Hidden Field
PHP Split Form Across Pages
PHP Form Validation
PHP Form File Upload
PHP Form Demo
PHP Form Empty Fields
PHP Form Multi-Value Fields
PHP Redirect after a Form Submission