My suggestion is to make sure this is not online unless sauoq deems it secure enough. I have viewed both this new version and the old one, but trying to parse embedded HTML/JavaScript that has it's entities escaped is just plain painful. If you post a text file, you don't have to escape the entities. (And for the record, if/when you do post code here at this site, you wrap that code in <code></code> tags and the escaping/formatting will be taken care of for you.) Keep in mind that most of us try to avoid JavaScript as much as possible. It's nice, but i prefer to keep my code as simply as possible, and adding JavaScript to the mix is only acceptable if it adds no complexity whatsoever - in other words, if i only have to target one browser. ;)

If you want to learn how to make CGI scripts, why not take the time to read Ovid's free Online CGI Course? Did i mention it's free? Then, after you have finished that, rewrite this script using CGI.pm (and maybe those CPAN modules mentioned by The Mad Hatter). Hopefully by then, you will think that writing CGI scripts can be so fun that you might even consider giving HTML::Template a whirl. (and here's a tutorial if you do ...)

Feel free to ask us more questions, but please download and use PerlTidy on your Perl programs before you post them online. Eventually you will learn to appreciate good indentation techniques, the rest of us sure do. ;)

jeffa

L-LL-L--L-LL-L--L-LL-L--
-R--R-RR-R--R-RR-R--R-RR
B--B--B--B--B--B--B--B--
H---H---H---H---H---H---
(the triplet paradiddle with high-hat)

In reply to (jeffa) Re: CGI DB interface, revisited by jeffa
in thread CGI DB interface, revisited by Jonathan17

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.