I apologize that I can't provide much code, as the app I'm working on is proprietary. I am working on an application using CGI::Simple and HTML::Template; the whole thing works beautifully in Firefox. However, in order to get it to work in IE I have to shift-click the submit button.

I have attempted to search for this problem, but I don't really know what to call it. "Shift-click on form submit required in IE" and variations are all I've been able to think of, and the results have not been enlightening.

I've tried to reduce it to simple code that raises the issue, but without much luck. Debugging web scripts (e.g. with perl -d) is something I'm not real familiar with, so any tips there would be helpful as well. Essentially, I have a script which generates a form with a submit button named 'run' and itself as the form's action (POST method).

I have IIS set to expire all content immediately, so I wouldn't think this is a caching issue (but who knows, right?). My colleague working in ASP.NET on the same server isn't having these problems, so I figure it's either

  1. something I'm doing wrong, or
  2. something with CGI and/or the way the CGI system interacts with Perl
I'm using ActiveState Perl 5.8.4. Items worthy of note:

If this turns out to be nothing to do with Perl, I'll be grateful (if annoyed, since IIS/IE experts aren't as readily available as my fellow Monks); but, if anyone can give me ideas about where I might be going wrong, places to look, etc., I will be thrilled.

I think I've given all the relevant information, but please ask if there's something I can tell you that will help. I will provide whatever I can short of breaching my NDA.

Thank you all in advance.

Update: thanks to Old Gray Bear, BaldPenguin, rlucas, and frodo72. Your ideas helped me find the culprit. The problem is actually two-fold:

  1. When pressing "enter" to submit, IE doesn't like named submit buttons (unless they are named "submit").
  2. My editor uses UNIX line-endings, and IE interpreted the HTML as all-on-one-line. I don't know why, but converting to Windows-style line endings solved half of the problem.
Once again, I'm stunned by the quality of the thoughtful, helpful, and timely response of the Monestary. Thank you all!

Yoda would agree with Perl design: there is no try{}


In reply to Odd form submit behavior in IE to a Perl CGI under IIS 6.0 by radiantmatrix

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.