You can try JavaScript......................
Replace the image from an INPUT type to an HREF and get rid of the form.
Within the href of each image put this..............
href="javascript: go_to('fetch.cgi?xyz=abc;image=aaa')"
href="javascript: go_to('fetch.cgi?xyz=abc;image=bbb')"
Here is the javascript.............................
<SCRIPT LANGUAGE="JavaScript">
function go_to(url)
{
if (url != "" && url != null)
{
self.location.href = url;
}
}
</SCRIPT>
----- Original Message -----
From: "aman cgiperl" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Wednesday, November 06, 2002 6:42 PM
Subject: fetch data from having multiple <input type=image>
> I have a form that looks like this
>
> <form action="fetch.cgi" method=post>
> <input type=hidden name=xyz value=abc>
> <input type=image src="/file/path/aaaa.jpg name=aaa>
> <input type=image src="/file/path/bbbb.jpg name=bbb>
> </form>
>
> When I click on one of the images, the hidden value of xyz get carried
over
> to the fetch.cgi as
> param(xyz)
>
> How can I determine whether img name aaa or bbb was clicked?
>
> Thanks alot
>
> Aman
>
> --
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]