|Pathologically Eclectic Rubbish Lister|
Newbie Tk Data collection Questionby bblustein (Beadle)
|on Apr 10, 2003 at 19:14 UTC||Need Help??|
bblustein has asked for the wisdom of the Perl Monks concerning the following question:
Ok, here's my question. I'm sure it's got a relatively easy answer, but I'm not sure how to approach this.
I've set up a TK Form that tracks different parts and various statistics about those parts (quantity on hand, part #, orders for that part, supplier, etc.). I'm trying to set up a daily update form that just displays a form with a basic "part number" : "Quantity" entry box, with the current quantity inserted into the entry as a starting value.
@partnames is an array I populate with all the parts I'm currently tracking, @quantity has the quantities.
Here's my code:
Now, this comes out how I want it, an entry and label for each part, with it's quantity entered as a starting value.
Now, the user will go through the paperwork, and update the quantities for each part.
I know how to use a simple $variable = $entry->get statement, but in this case, each entry is named $w. How do I pull the numbers in the entry into an array so I can spit them back into the database I have set up?
Thank you for your help.