Multiselect checkbox on forms


#1

I have a custom form that I have multiple questions with checkbox option I am having a hard time getting it to work. here is a code example.

Been trying to get this to work but no luck. below is an example.

<input type=“checkbox” name=“check_list[]” value=“value 1”
<input type=“checkbox” name=“check_list[]” value=“value 2”
<input type=“checkbox” name=“check_list[]” value=“value 3”
<input type=“checkbox” name=“check_list[]” value=“value 4”
<input type=“checkbox” name=“check_list[]” value=“value 5”

and then in the php code do

$str_post = “check_list=” . urlencode($check_list) is there anything I am doing wrong or a better way to do this. I am not too versed with php so any help would be appreciated.


#2

Hello Tim,

Is the form build using hubspot module, or using embeded code, you just need multiple check box option to be working inside form ?

Thanks