Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
Since the fields are always dynamic, I'm not exactly sure how to physically take the data from the form and put it back into the database.
I set up the variables to print out the text fields based off the name pulled from the DB, -, and value1-4 (not all sets of fields have all 4 possible value fields, some just have 1 or 2)
The thing is, there's no "common" thing between my infinite number of different name-value1-4 pairs.<input type="$stored_name-value1"> <input type="$stored_name-value2"> <input type="$stored_name-value3"> <input type="$stored_name-value4"> # assuming $stored_name is a NEW name and only 2 fields <input type="$stored_name-value1"> <input type="$stored_name-value2">
How on earth can I read in the input after they submit the form?
I think a hash would be the way to do it, but I have no idea how I could get un-like data together or what I could do to make the data similar but to the point I can break it apart later.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: reading dynamic form params
by wfsp (Abbot) on Dec 12, 2006 at 19:28 UTC | |
|
Re: reading dynamic form params
by sulfericacid (Deacon) on Dec 12, 2006 at 19:13 UTC |