In list(), I tested just the form generation code and it doesn't look like it's producing valid HTML.

The code I used was:

#!/usr/bin/perl use strict; use warnings; use CGI; my $q = CGI->new(); my $output = $q->b("Field1: ") . $q->textfield(-name=>'field1',-size=> +20) . $q->p() . $q->b("MP3:") . $q->filefield(-name=>'mymp3', -size=>20) . $q->p() . $q->b("Field2:") . $q->textarea(-name=>'field2',-rows=>4,-cols=>20 +); $output = $q->start_multipart_form() . $q->hidden(-name=>'rm',-value=>'save_mode') . $output . $q->br() . $q->submit(-label=>'Upload') . $q->end_form(); print $output; exit; __DATA__ <form method="post" action="/./html.pl" enctype="multipart/form-data"> <input type="hidden" name="rm" value="save_mode" /><b>Field1: </b><in +put type="text" name="field1" tabindex="1" size="20" /><p /><b>MP3:< +/b><input type="file" name="mymp3" tabindex="2" size="20" /><p /><b> +Field2:</b><textarea name="field2" tabindex="3" rows="4" cols="20"></ +textarea><br /><input type="submit" tabindex="4" name=".submit" value +="Upload" /><div></div> </form>

As you can see, there is no closing form tag. (Also, some of the fields are in XHTML rather than HTML, so that could be causing problems as well.) I don't have a full answer at the moment, but Firefox 1.5 might be more strict about valid HTML.


In reply to Re: CGI::Application and start_multipart_form stumper by Belgarion
in thread CGI::Application and start_multipart_form stumper by dmorgo

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.