hi,
i have several checkboxes in the form. When i receive the email, the text label, lets say, "full time", "part time", etc, comes empty. how can i see all the checkboxes that were indeed checked? (I'm showing in red the ones i need to be checked or unchecked).
this is the php code i have. should i change something in it?
<?PHP
$mailto = "seniorhelpers******.com";
$email = $HTTP_POST_VARS['email'];
if ($email == "") {
$email = $mailto;
}
$mailsubj = "Caregiver Employment Submission Form";
$mailhead = "From: $email\n";
reset ($HTTP_POST_VARS);
$mailbody = "first, Last, phone_number, second_number, city, state, zip,how_hear_about_us, years_experience,cna,hha,companion,hours_available,full_time, part_time,day_shift,Night_shift, weekends,live_in,flexible,have_car,email,drives,comments:\n";
while (list ($key, $val) = each ($HTTP_POST_VARS))
{
if ($key!="submit")
{
$mailbody .= "$key : $val\n";
}
}
mail($mailto, $mailsubj, $mailbody, $mailhead);
?>
i have several checkboxes in the form. When i receive the email, the text label, lets say, "full time", "part time", etc, comes empty. how can i see all the checkboxes that were indeed checked? (I'm showing in red the ones i need to be checked or unchecked).
this is the php code i have. should i change something in it?
<?PHP
$mailto = "seniorhelpers******.com";
$email = $HTTP_POST_VARS['email'];
if ($email == "") {
$email = $mailto;
}
$mailsubj = "Caregiver Employment Submission Form";
$mailhead = "From: $email\n";
reset ($HTTP_POST_VARS);
$mailbody = "first, Last, phone_number, second_number, city, state, zip,how_hear_about_us, years_experience,cna,hha,companion,hours_available,full_time, part_time,day_shift,Night_shift, weekends,live_in,flexible,have_car,email,drives,comments:\n";
while (list ($key, $val) = each ($HTTP_POST_VARS))
{
if ($key!="submit")
{
$mailbody .= "$key : $val\n";
}
}
mail($mailto, $mailsubj, $mailbody, $mailhead);
?>