I fixed the last problem I had and learned quite a bit through posting here, so here we go again...
This time I have a results page which displays records with the facility to update the database using checkboxes, e.g.:
Record 1
[checkbox] Delete this record
[checkbox] Update this record
Record 2
[checkbox] Delete this record
[checkbox] Update this record
etc.
The checkboxes generated contains unique IDs as values. What I need to work out is how to get this to work. I was trying out a theory where the 'Delete' checkbox is named 'delete[]' and 'Update' is 'update[]', using a foreach loop to perform the correct function. Not sorted the syntax out yet but discovered a new problem.
I only want the user to be able to select one option, either Delete OR Update, but I can't use radio buttons because I need the name of the input field to create the array as above.
Any guidance on whether you think the foreach loop idea should work, or overcoming the second problem, much appreciated!