Actually, after seeing the rest of the replies I've realised that this is something that I had to deal with myself a while back.

The way I got around it was (as has been suggested) to assign individual names to each INPUT control. In my case, I was using arrow images as sorting buttons. The code to render the HTML was a little like so:

print qq(<input type="image" name="sort:$field:asc" src="$image_dir/do +wn.png">);
The above was within a for loop, where the value of $field was changed on each iteration, to produce a unique name for each "button".

I had about 20 of these little "sorting" buttons on my page, so when it came to working out which one had been clicked (if any), I did this:

my ($sort_string) = grep { $_ =~ /^sort/ } @params; my ($sort_field, $sort_dir) = defined($sort_string) ? $sort_string =~ /^sort:(\w+):(\w+)/ : qw(avin desc);

The above worked fine in both IE and Firefox.

Hope this helps,
Darren :)


In reply to Re: <INPUT type="image"> problem with IE browser by McDarren
in thread <INPUT type="image"> problem with IE browser by soon_j

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.