I have a form with checkboxes
HTML Code:
<input type="checkbox" name="amenities[]" value="0" id="amen">Washer/Dryer
<input type="checkbox" name="amenities[]" value="1">Kitchen Appliances
<input type="checkbox" name="amenities[]" value="2">Patio
<input type="checkbox" name="amenities[]" value="3">BBQ Grill
<input type="checkbox" name="amenities[]" value="4">Balcony
<input type="checkbox" name="amenities[]" value="5">Garage
I get an array back.
How do I then send an email of those values in a form, so that the checkboxes which have been checked are also checked (Here is what im thinking
PHP Code:
$message .= "<input type='checkbox' name='amenities[]' value='0' //if selected echo "checcked";>Washer/Dryer....."
thanks