You are not printing this data to your database, you are just printing, except in the one line where you print to DAT....

Also, if I am reading it correctly, you are going through all of your values in the hash input 16 times. It looks like your routine will assign a value of either three dashes or the last value of $name from the part of your script that deals with inputting. This will probably clobber all of your work of assigning these values.

You might want to try this in your script to see what the values are...

foreach $key (keys (%input)) { print qq|The key is $key and the value is $input{$key}\n|; }
To see what effect your loop has on the data, try running it above and below where you trying to write to the database. I often do this to doublecheck I am not messing up my values (which I do with amazing frequency).

I still recommend CGI.pm BTW - makes lots of things a bit easier.

HTH,

Kind thanks to Beatnik on his gentle clarification of the real value of $ENV{'CONTENT_LENGTH'}
EEjack


In reply to Re: Re: Multpile checkbox handling? by eejack
in thread Multpile checkbox handling? by Anonymous Monk

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.