ekooke Posted May 30, 2008 Share Posted May 30, 2008 I am creating a form in which X number of checkboxes will be outputted. The number of checkboxes is dynamic, based on the number of files in the system. As I don't know how many checkboxes there are, what system should I use in order to be able to check if the checkboxes have a click in them or not? I have been playing around with this for a few hours, but have not managed to come up with a solution that works. Link to comment https://forums.phpfreaks.com/topic/107928-solved-unknown-number-of-_post-fields/ Share on other sites More sharing options...
PFMaBiSmAd Posted May 30, 2008 Share Posted May 30, 2008 Use an array - http://www.php.net/manual/en/faq.html.php#faq.html.arrays You can use a simple foreach() loop to iterate through the set elements. Link to comment https://forums.phpfreaks.com/topic/107928-solved-unknown-number-of-_post-fields/#findComment-553229 Share on other sites More sharing options...
ekooke Posted May 30, 2008 Author Share Posted May 30, 2008 Thanks Link to comment https://forums.phpfreaks.com/topic/107928-solved-unknown-number-of-_post-fields/#findComment-553241 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.