F
Fernie
Dear friends,
I have 20 different forms on a single html page. Each form has its own text
input field and submit button to update text and a submit button to delete.
Each of the 20 forms consists of the following html:
<FORM method='POST' action='Products.cgi'>
// Display product details.
// Display a text Input Field.
// Display an submit 'update' button to post both
// input and hidden field data.
// Display a submit 'delete' button to post the
// record ID and delete the record.
</FORM>
When I click on the submit button belonging to any of the 20 forms on the
html page, the appropriate data is correctly posted to the server and either
a successful update or deletion is performed.
Now for the problem. All along, I had wrongly assumed that I could embed
all 20 forms within a single 'larger' form and perform a bulk update/delete
process. That large form would submit all of the smaller forms input and
hidden field data in one whack. After trying to figure it out, I sadly
discovered that this was not possible using html.
Ideally, I would like to handle this without relying on client side
scripting. Is there a way to accomplish this using plain html? If there is
not a way to do this, I am thinking that it may be best to assign each
item's delete button to a GET. Also, I'd have to get rid of the individual
update buttons and have a single form that updates the whole batch
regardless if one or two items were updated.
Any comments or suggestions would be much appreciated.
Regards,
Fernie
I have 20 different forms on a single html page. Each form has its own text
input field and submit button to update text and a submit button to delete.
Each of the 20 forms consists of the following html:
<FORM method='POST' action='Products.cgi'>
// Display product details.
// Display a text Input Field.
// Display an submit 'update' button to post both
// input and hidden field data.
// Display a submit 'delete' button to post the
// record ID and delete the record.
</FORM>
When I click on the submit button belonging to any of the 20 forms on the
html page, the appropriate data is correctly posted to the server and either
a successful update or deletion is performed.
Now for the problem. All along, I had wrongly assumed that I could embed
all 20 forms within a single 'larger' form and perform a bulk update/delete
process. That large form would submit all of the smaller forms input and
hidden field data in one whack. After trying to figure it out, I sadly
discovered that this was not possible using html.
Ideally, I would like to handle this without relying on client side
scripting. Is there a way to accomplish this using plain html? If there is
not a way to do this, I am thinking that it may be best to assign each
item's delete button to a GET. Also, I'd have to get rid of the individual
update buttons and have a single form that updates the whole batch
regardless if one or two items were updated.
Any comments or suggestions would be much appreciated.
Regards,
Fernie