Click here to Skip to main content
15,917,795 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I am trying to send value of selected checkbox out of multiple checkboxes to my email.For sending value in email, I am using POST method.
My code is
$name=$_POST['name'];
$subject = "Enquiry" ;
$to= "vibha@donkeysweb.com";
$msg.= Hello;
$msg.= $name;
$headers = "From: $name < $email >.";
mail($to, $subject, $msg, $headers) ;
?>
Posted

1 solution

Ok, and how it is going?

I mean, here there's not any attempt of checking the value of a checkbox... What have you tried till now? have you even searched google? there are penty of form samples out there...

I don't know, but probably if you search for "send mail javascript form checkbox" in google I bet it will give you good samples.

Good luck...
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900