Let's look at a sample image_button:
print $cgi->image_button(This will produce the following HTML:
-name => 'my_button',
-src => 'images/button.gif'
);
<input type="image" name="my_button" src="images/button.gif" />The only one we haven't seen already in the general form attributes section is the -src attribute. This should point to the image file itself, relative to your HTML output. In this case, it's calling a file in the images/ directory called button.gif.
Once you submit the form, you'll have access to two parameters that represent the x/y coordinates clicked on when the image was used to submit the form. They will take their names from the -name parameter and are available in the parameters as param('my_button.x') and param('my_button.y').
