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!
Hi all
I need to pass a empty checkbox value to an array. The script below is from a loop that may be repeated n times. I need all checked and unchecked values to be stored in the array. At the moment if l have 6 rows unchecked followed by 2 rows checked, the output array only has 2 elements. How do I deal with this?
Thanks, Steve
You cannot get the checkboxes that were left unchecked. You must find out what options where available, which were selected, and the difference will be the ones not chosen.