Forms, Element - Image

Use

The Image element is not commonly used. Essentially it is a submit button that uses a graphic instead of text. The button, as well as submitting all the data in the form, returns the mouse’s position on the graphic when clicked. (Returns 0,0 if the visitor clicks on the top left of the graphic, and the horizontal size and vertical size of the image if clicked on the bottom right of the graphic).

Properties

ATTRIBUTE

REQUIRED?

DESCRIPTION

NAME=" "

Optional

The name of the submit button.

SRC=" "

Required

The location of the Image to be used as the submit button. The syntax is identical to the IMG SRC tag. (c.f. Absolute and Relative References )

Example

<INPUT TYPE="image" NAME="image_submit" SRC="graphics/poses.gif">

 

NOTE

For this example to work it must be inside form tags (<FORM &ldots;> &ldots; </FORM>). The entire form code, including all the examples, is ready for you to use.


  Form Elements