Each checkbox has to have a unique name & be tested individually:
if($_POST['cb_service_doc_managemement'] == "Document Management"}{
$message[] = ("Document Management was selected");
}
# join $message array here
If you have a lot of checkboxes you can get fancy & put the names & values in an array, you only have 6 so it's probably not worth it.
I hope this helps,
Bob
Quote:
|
Originally Posted by RichlineTechnical
visit http://www.richlinetechnical.com/request_quote.htm and scroll down to the check boxes. i don't know the code to email all the ones that are checked... it'll only submit one. what is the code that i need to put in my php file to allow this... this is what i have currently
this is what i have where i declare the variables
[code:1:fb56971c14]$service = stripslashes($_POST['Service']);[/code:1:fb56971c14]
this is what i have where i print for the email
[code:1:fb56971c14]$message .= "Services requesting: $service\n\n";[/code:1:fb56971c14]
|