When you don't tell us what "simply 'doesn't work'" means of course we have no idea what that means. If I said "I went out to my car today and it doesn't work!" and didn't give you any information on past issues, known problems, or anything you would have a hard time telling me why it doesn't work since it could be anything at all. ;) Until you figure this out, use a print statement to generate the HTML. Use the HTML generated by CGI as your base and modify it to be closer to your working example until you find the part of the HTML that is causing the error. That is what debugging normaly requires, slow methodical changes until you find that one change that makes the program start/stop working correctly. At that point you'll know what false assumption or mistake you or the computer made and hopefully know how to fix it, or someone else will.


___________
Eric Hodges

In reply to Re^5: Whats wrong with this code. by eric256
in thread Whats wrong with this code. by kmullin5016

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.