I need help with my code. I'm trying to submit multiple checkbox values to my database but it always submits only one value. | Sololearn: Learn to code for FREE!
Новый курс! Каждый программист должен знать генеративный ИИ!
Попробуйте бесплатный урок
0

I need help with my code. I'm trying to submit multiple checkbox values to my database but it always submits only one value.

2nd Feb 2019, 8:29 AM
Efe Panama
3 ответов
+ 1
Are these checkboxes using the same names? BTW: please share the code you're writing :)
2nd Feb 2019, 12:01 PM
Stef Schöningh
Stef Schöningh - avatar
0
Stef Schöningh yes, using the same names. How can I share the code please, there's no option for adding the screenshot
2nd Feb 2019, 9:09 PM
Efe Panama
0
Panama Efevoke if you press the button to the left of the send button you can insert your code. Anyways. Checkboxes shouldn't use the same names. If you give them different names it will solve your problem. For example <input type="checkbox" name=check1"/> <input type="checkbox" name=check2"/>
3rd Feb 2019, 8:32 AM
Stef Schöningh
Stef Schöningh - avatar