RE: [PHP] Multiple Image Submit Buttons.
| From: | Jason Murray | Date: | Mon, 25 Jun 2001 02:50:13 +0000 |
| Subject: | RE: [PHP] Multiple Image Submit Buttons. | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-55083@lists.php.net to get a copy of this message | ||
> This works for non-image submit buttons, because the 'name'
> and 'Value' tags on the submit tag works for them, but the
> 'value' component isn't supported for <input type="image" ...>
>
> Any one have any other ideas on how to do this? multiple
> images for submit buttons (where you know which you pressed).
<INPUT TYPE='IMAGE' NAME='imagename' SRC='vdknfdf'>
... in the receiving script you'll have the variables $imagename_x
and $imagename_y if the image was clicked - they will also be the
x/y coords of where the user clicked.
Jason