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!
Ok, I am generating checkboxes from entries I have in a database.. I can do this just fine. What I am stuck on is how do it tell if a user has checked that specific box in my other php files? I can't use $_Post[] can I? The reason that I assume that is because the id is always going to be different. It will always be the index of a date range from my database.
I orginally had a drop down populated with all the date ranges and that was fine since I could just see what the value of that box was in my other scripts... but being able to select more than one range would be a plus...
Here is the code I use to generate the checkboxes:
But my problem is that I will not know the id of each checkbox. For instance, one could be named "4" where another is "9". So in order to see if they are checked, I would have to check all 0 - 9 and that is something I was hoping to avoid.