Hi, Im new to PHP and Im having trouble getting a contact from to submit multiple checkbox selections.
Here is the part of my php that handles the selections:
if(trim($_POST['interest']) == '') {
$hasError = true; } else { $interest = trim($_POST['interest']); }
And this is the part of my HTML:
<label for="interest"><strong>I'm interested in:</strong></label>
<input type="checkbox" size="" name="interest" value="Photography" /> Photography
<input style="margin-left: 20px;" type="checkbox" size="" name="interest" value="Editorial" /> Editorial
<input style="margin-left: 20px;" type="checkbox" size="" name="interest" value="Other" /> Other
I would appreciate any help on this issue. Thanks in advance!