Avatar of BR
BR
Flag for Türkiye

asked on 

getting checkbox data form a html - php form

I have a lot of check boxex on my form. The users can check the boxes and submit it, ( I use post method)
then I need to get all the data that have been posted by the users. But mostly I have many checkboxes posted at the same time,
How can I get all the checkboxes which has value = 1 and print it on the screen?

I assign my variable to checkbox name so that I would know which one is checked.


<input name=$bayikodu type=checkbox value=0 />
PHP

Avatar of undefined
Last Comment
BR

8/22/2022 - Mon