Checkbox - get row ID
Posted: Sat Mar 10, 2012 3:29 am
Hello, I hope that someone will be able to help me or at least point me in the right direction.
I have a table, with values for each row being retrieved from a database.
I want to add a checkbox for each row which if selected will allow me to perform some further action (i.e. send an email to the person who's details are in the selected row).
How can I get the value of the ID field ($row[0]) for all rows that have been selected?
My original idea was to have a 'selected' field in the database and updating this for each row, every time a checkbox was changed - but this would not be a good solution as there would be conflicts if more that one user accessed the form at the same time.
Also I need the checkboxes that are selected to stay selected following a submit.
Thanks for any help you can offer
Regards
Ian
I have a table, with values for each row being retrieved from a database.
I want to add a checkbox for each row which if selected will allow me to perform some further action (i.e. send an email to the person who's details are in the selected row).
How can I get the value of the ID field ($row[0]) for all rows that have been selected?
My original idea was to have a 'selected' field in the database and updating this for each row, every time a checkbox was changed - but this would not be a good solution as there would be conflicts if more that one user accessed the form at the same time.
Also I need the checkboxes that are selected to stay selected following a submit.
Thanks for any help you can offer
Regards
Ian