josef has asked for the wisdom of the Perl Monks concerning the following question:
I have a form with a table where new rows can be added/deleted dynamically by clicking on add/remove button. The new rows are now added at the end of the table, but in the future I must have the possibility to insert new rows in any position in the table and move up/down the rows. The table will contain Access List and the order of rules is critical.
The new rows contain more columns with input fields, checkboxes, radio buttons and a select list. The table is populated with data from a small database (and all form elements used now unique name). I used Perl and JavaScript to do this job.My problem begin when I try to save the new added/removed rows back into the database. When I submit the form, the POST string not contain my new added data. Yes, I know what is happening but I have no solution.
My question is, how can I save my changes (with new added rows) from the HTML table into the database? I wish to use simple programming style (KISS style) and not big/complicate module. Template style and performance is not important for me, because will be one page and only one user will work with the application. The security is very important.
I wish to use only perl (and perhaps JavaScript, but no AJAX) for my work. If it's necessary, I can restart all over again in accord with your guidance.
Thanks in advance for your sugestions
Josef
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Save data from a dynamic HTML table into database
by Corion (Patriarch) on Jun 06, 2012 at 17:10 UTC | |
|
Re: Save data from a dynamic HTML table into database
by aaron_baugher (Curate) on Jun 06, 2012 at 18:24 UTC | |
|
Re: Save data from a dynamic HTML table into database
by muba (Priest) on Jun 06, 2012 at 21:23 UTC | |
|
Re: Save data from a dynamic HTML table into database
by thomas895 (Deacon) on Jun 07, 2012 at 05:11 UTC | |
|
Re: Save data from a dynamic HTML table into database
by flexvault (Monsignor) on Jun 07, 2012 at 14:20 UTC |