PHP foreach invalid value

Zevs

New Member
I have several like this in my HTML code:\[code\]<input class="table" type="checkbox" name="interest[]" value="http://stackoverflow.com/questions/3685219/finger food" />\[/code\]and this in my PHP code:\[code\]$checkboxes = stripslashes($_POST['interest']);//process the checkboxesforeach ($checkboxes as $value) { $selectedChkbx .= $value . ", ";}\[/code\]I am getting:\[quote\] Warning: Invalid argument supplied for foreach()foreach()\[/quote\]and my \[code\]$selectedChkbx\[/code\] variable isn't getting any values inside of it. Does anyone know what I'm doing wrong?
 
Back
Top