trying to create a particular app for sending a Bill of lading to vendors. I start with a database call and get the list of items to display. then one of our users fills in the approprite quantities and i want to send an e-mail of only the lines where data was filled into the form fields. can someone point me to a good method of doing this aside from trying to pass the entire hash after submitting the form? The snippet below is how i was putting all of the fields into the array and then trying to pass the array to an e-mail script. it just seems unruly and that there would be a much more efficient method.. Thanks for any help. ....
my $ordno = 1; while (my $ref = $GetWOData->fetchrow_hashref()) { my $ordslice = 1; print "$ref->{'Ord_No'}\n"; $orders[$ordno]->[$ordslice] = "$ref->{'Ord_No'} | $ref->{'Item_No'} +"; $ordslice++; print "$ref->{'Item_No'}\n"; print "<input type=\"text\" name=\"qty$ordno\" value=\"\" size=\ +"6\">\n"; #Qty of parts $orders[$ordno]->[$ordslice] = "0"; $ordslice++; print "$ref->{'Item_Desc_1'}\n"; $orders[$ordno]->[$ordslice] = "$ref->{'Item_Desc_1'} | $ref->{'Item +_Desc_2'}"; $ordslice++; print "<input type=\"text\" name=\"skd$ordno\" value=\"\" size=\" +6\">\n"; #Num of skids $orders[$ordno]->[$ordslice] = "0"; $ordslice++; print "$ref->{'Cus_Name'}\n"; $orders[$ordno]->[$ordslice] = "$ref->{'Cus_Name'}"; $ordno++; } $GetWOData->finish();

In reply to looking for better solution by BikerDuck

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.