in reply to Image Button
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.<FORM METHOD="POST" ACTION="./yourscript.pl"> <INPUT TYPE="IMAGE" NAME="submit1" SRC="image1.gif"> <INPUT TYPE="IMAGE" NAME="submit2" SRC="image2.gif"> </FORM>
The only problem with image submits like this is that you cannot have an image reset button without resorting to JavaScript.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Image Button
by Anonymous Monk on Mar 17, 2001 at 03:17 UTC |