Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
It's just text fields with a numeric name and one submit button.
What I need to do is find a way to store all these numeric params into a hash (as I assume this is the best way?) and then update a mysql every numeric name (which is actually called pic_id in the database) with the value of that parameter.
Anyone have thoughts on how to do this? I could in theory parse the database before I collect the form params (after it was submitted) and get the available pic_ids that I expect and make each their own variable. Then get the form params in their own scalar. But I doubt that's the best way.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: collect all numeric form params and update database
by rhesa (Vicar) on Mar 06, 2006 at 01:20 UTC | |
by Anonymous Monk on Mar 06, 2006 at 01:32 UTC | |
by rhesa (Vicar) on Mar 06, 2006 at 01:34 UTC |