Multiple Checkboxes not Appearing in Emailed Form Results
Posted: Mon Sep 26, 2005 11:40 am
My problem is that when users slect multiple checkboxes, only one of their selection ends up in the
emailed results. I need all of their selection to appear.
Here are the bare bones of my code...
My FORM code:
My EMAIL code:
Any advice on how my code should change so that ALL checkbox selections come through?
emailed results. I need all of their selection to appear.
Here are the bare bones of my code...
My FORM code:
Code: Select all
<form action="volunteer_formInfo.php" method="post" name="volunteerform" id="volunteerform">
<input name="availability" type="checkbox" id="availability" value="mornings">Weekday mornings
<input name="availability" type="checkbox" id="availability" value="afternoons">Weekday afternoons
<input name="availability" type="checkbox" id="availability" value="evenings">Weekday evenings
<input name="availability" type="checkbox" id="availability" value="weekend">Weekend only =
<input name="availability" type="checkbox" id="availability" value="unpredictable"> Unpredictable
hours
<input type="submit" name="Submit" value="send us the info">
</form>Code: Select all
<?php
$formsent = mail("name@email.com", "Volunteer Form: $name", "\r\nTimes Available: $availability\r\
?>