Skip to content Skip to sidebar Skip to footer

Checkbox Looping In Php While Posting To Database

I am building at the moment an achievement system that works on the foundation of checkboxes (since its not post related) However, I bumped into a problem, and I cant seem to wrap

Solution 1:

why don't you just give the checkbox the value of the achievement and get rid of the hidden input

<inputtype='checkbox'id='achievement'name='IsChecked[]'value = '<?phpecho$row['AchievementId'];?>'>

then in the php

foreach ($IsCheckedas$AchievementId){       

Post a Comment for "Checkbox Looping In Php While Posting To Database"