in reply to Image Button

If you use a type="image", it acts like an image map for CGI. Thus, you should be able to do:
<FORM METHOD="POST" ACTION="./yourscript.pl"> <INPUT TYPE="IMAGE" NAME="submit1" SRC="image1.gif"> <INPUT TYPE="IMAGE" NAME="submit2" SRC="image2.gif"> </FORM>
Then CGI.pm should have values for "submit1.x" and "submit1.y" if the first one is pressed, and similar for the second. So you can check for defined() values to determine which was pressed.

The only problem with image submits like this is that you cannot have an image reset button without resorting to JavaScript.


Dr. Michael K. Neylon - mneylon-pm@masemware.com || "You've left the lens cap of your mind on again, Pinky" - The Brain

Replies are listed 'Best First'.
Re: Re: Image Button
by Anonymous Monk on Mar 17, 2001 at 03:17 UTC
    I tried this but i get an error reading the image.