Jump to content

I need help with check boxe's please


twitch23

Recommended Posts

<?php

// your email address

$youremail = "[email protected]";

 

 

// the subject of the email

 

$msg = $_POST['notes'];

$subject = $_POST['subject'];

$email = $_POST['email'];

$name = $_POST['name'];

 

 

 

if(empty($youremail))

{

die("No email address added. Please go back.");

} elseif(empty($name)) {

die("No name added. Please go back.");

} elseif(empty($msg)) {

die("No notes added. Please go back.");

}

else

{

if(mail($youremail, $subject, $msg, "From: $email\r\nReply-to: $email\r\n"))

{

echo "Email sent.";

} else {

echo "Mail() is not enabled.";

}

}

$ch1 = $_POST['ch1'];

$ch2 = $_POST['ch2'];

$ch3 = $_POST['ch3'];

$ch4 = $_POST['ch4'];

$ch5 = $_POST['ch5'];

 

?>

 

Thats the code i got so far  i need it to mail the checked options with the messeges.....  Thank you

Link to comment
https://forums.phpfreaks.com/topic/219174-i-need-help-with-check-boxes-please/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.