In a html form, I'm displaying multiple records from a table, ready for update.
Right now I use: name=<column-name>_<pk-id> value=<value>
for the fields.
Then in my python-script I go for:
for key in form.keys():
if key.startswith('<name-A>_'):
update <table> set <name-A> = <value> where pk=<pk-id>
if key.startswith('<name-B>_'):
update <table> set <name-B> = <value> where pk=<pk-id>
Is there a more 'organic' way to handle multi-record forms?