$interest = str_replace(' ', '+', strip_tags($_POST['item_meta'][37]), $i);Thank you
Oh okay, I didn't even think of it as being treated as an array. Thank you! So then if I want to check for each item selected I could just iterate through the array or would I have to check each key-value for a boolean?
foreach ($interestArray as $value) {
$interest .= strip_tags($value) . ',';
}
I suggest you use the Kint debugger. If only a single checkbox is checked, it's sent as a string. https://formidable-masterminds.com/downloads/kint-debugger/
Hi, so that field uses multiple checkboxes. I did try imploding the array instead to make it into a string that can be appended but that hadn't worked either... I did check out the Kint debugger but I don't think I understand enough programming for it to be helpful
Please login or Register to submit your answer