Differentiating multiple "INPUT type=image" in a single form.
| From: | Ken Whitmore | Date: | Mon, 30 Oct 2000 12:48:33 +0000 |
| Subject: | Differentiating multiple "INPUT type=image" in a single form. | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-22671@lists.php.net to get a copy of this message | ||
In my HTML page, there's a form:
<FORM method="post" action="processform.php">
<!-- Other form fields go here...-->
<!-- ... -->
<!-- Image buttons for different actions to be performed inside processform.php -->
<INPUT type="image" name="button" value="Change"
ALT="Change" SRC="change.gif">
<INPUT type="image" name="button" value="Confirm"
ALT="Confirm" SRC="confirm.gif">
</FORM>
If I use normal "submit" items, the PHP script can differentiate by checking the value of
$button.
However, with "image" items, the same PHP script fails to differentiate them. What do I do
find
out which image was clicked?
Please reply directly to my address below, as I'm about to unsubscribe from this list due to
the immense amount of mail it's carrying. (I wish I didn't have to, since there is a lot
of useful info coming through this list, but my time is limited and weeding through hundreds of
messages each day is not my idea of high job productivity.)
Ken Whitmore
ken@wacom.com.uy