PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
i have a checks in form to check people in to an office it is currently a basic insert form but i want to be able to just tick the relevant check boxes for who has attended then confirm all at once rather than doing them individually by seperate buttons
Celauran wrote:You've got a single checkbox with no value assigned to it. How is this meant to work? Display a list of everyone with a checkbox next to each name?
Not really. That's going to contain a single value.
but i want to be able to just tick the relevant check boxes for who has attended then confirm all at once rather than doing them individually by seperate buttons
You need to store the IDs in an array for this to work.
jonnyfortis wrote:the <input type="hidden" name="attendance_cust_id" value="<?php echo $row_rsLesson['custID']; ?>" /> will keep track of individual users?
If $row_rsLesson['custID'] identifies the person, then modify the code I posted above to change $person['id'] to $row_rsLesson['custID']. Then you can get rid of input attendance_cust_id because it will be the array key in the array sent.