Yeah, I would do that. The only problem is that I can't seem to install one module that is required for my script -- it's Chart::Plot, and every time I try to get CPAN to install it, it fails on installing the GD module, which Chart::Plot is dependent upon, so I can't run my script locally.

I did notice, though, that commenting out any three hidden text fields fixes the problem -- like the perl script doesn't like to have more than a certain number of hidden text fields. I can't imagine that there's that restriction on HTML files, so any ideas why it would refuse to print out more than a specific number of hidden text fields? It doesn't seem to matter whether I use the hidden() function or print them out manually via text.

As for checking the HTTP headers and stuff -- I don't think that would be necessary since the script works fine when first run; it just fails when the user inputs a value into the chemical element field. And since commenting out those few lines will get the HTML page to show correctly, it doesn't seem like the HTTP headers would be the problem.

In reply to Re: Re: Malformed HTML output by simX
in thread Malformed HTML output by simX

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.