<input type = image ... >
| From: | Russ Abbott | Date: | Mon, 06 Nov 2000 15:29:58 +0000 |
| Subject: | <input type = image ... > | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-23898@lists.php.net to get a copy of this message | ||
I'd like to use a tag such as <input type=image name=n value=v>
to pass v as a value of $n, but it doesn't seem to work.
I have this tag inside a form, and clicking on the image does trigger
the program pointed to by the form, but $n is not bound to anything.
(Other <input ... > tags have their values posted properly.)
If I change type=image to type=submit, a button is generated and $n
is bound to v as expected. Is there some way to substitute an image
for a button and associate data with the image?
I want to have a group of images, each with a different data value,
and then have the program be told which image was clicked.
Thanks.
-- Russ Abbott