Fellow monks,

I've come across an interesting problem with Firefox and CGI scripts.

I've got a script I'm working on that has forms on a couple of pages. No problems with that - Firefox renders the HTML just fine as I would expect it to. The problem comes in when I've got a graphic with a link attached to it Firefox does a lookup and doesn't reference itself. IE will load the next page - assuming that the requisite information has been filled in.

When I have the hyperlink outside the form, both IE and Firefox are showing the submit button's link as being the link on the graphic above.

My questions are:

  1. Why would a link outside the form affect the submit button?
  2. Why is the CGI module showing the link above and not a blank for my submit button?
  3. Is there something that I need to do differently to in calling the submit? Currently I'm doing
    print $query->submit(-name => "Go to Step 3"),
    to submit the form.

The odd thing is that Firefox will display the second page when I remove the hyperlink outside the form. Any light anybody can shed on this would be greatly appreciated.

Update: Thanks to ikegami I found a typo in my URL which solved my problem partially. However the URL is still going wrong with the submit button in Firefox.

Useless trivia: In the 2004 Las Vegas phone book there are approximately 28 pages of ads for massage, but almost 200 for lawyers.

In reply to CGI.pm form buttons and Firefox by Popcorn Dave

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.