Working with Image Fields

An image field is a graphical replacement for a standard HTML submit button. The image field is clickable, and it works exactly like a submit button in that clicking it sends the form data to the Web server. The advantage to replacing a submit button with an image field is that you get to use whatever image file you like to submit the form, as in Figure 68.5. You don't have to accept the standard and generally ugly button widget that comes with your browser.

Listing 68.5. View Source for Figure 68.5.
<form>
  <input type="image" name="goButton" src="images/go.gif" width="20" height="20">
</form>
Figure 68.5. Use an image field in place of a standard submit button.

The src attribute contains the ...

Get Web Design Garage now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.