Sorry that I did not mention that aaa and bbb are just examples. I won't actually know the expected names, as they are generated at run-time by a cgi script. Thanks Aman
----- Original Message ----- From: "Sales Department" <[EMAIL PROTECTED]> To: "aman cgiperl" <[EMAIL PROTECTED]> Sent: Wednesday, November 06, 2002 6:35 PM Subject: Re: [CGI] fetch data from having multiple <input type=image> > > <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? > > > if($form{aaa}){&do_this;} > if($form{bbb}){&do_that;} > > orrr > > $myPic = $form{name}; > > Andre > ----- Original Message ----- > From: "aman cgiperl" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Cc: <[EMAIL PROTECTED]> > Sent: Wednesday, November 06, 2002 6:42 PM > Subject: [CGI] fetch data from having multiple <input type=image> > > > > [NOTICE: see the message footer for important information] > > 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 unusbcribe, send an email contining the words: 'unsubscribe cgi-list' > to the following email address: [EMAIL PROTECTED] > > > > Archives of the following mailing lists are available at: > http://www.perl.jann.com/ > > the CGI Mailing List > > the mod_perl mailing list > > the embperl mailing list > > Searching, browsing and posting are available at http://www.perl.jann.com/ > > > -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]