|
What
you can do
|
|
|
|
if (!isset($_POST['submit'])) { // if page is not submitted to itself echo the form
?> |
|
|
|
} else {
if ($_POST["email"] and $_POST['email'] != "") {
$send_from = $_POST["name"] . " <" . $_POST["email"] . ">";
}
else {$send_from = $_POST["name"] . " ";}
//else { $send_from = "test@rigneygraphics.com"; }
if ($_POST["sendto"] and $_POST["sendto"] != "") {
$recipient = $_POST["sendto"];
} else {
$recipient = "info@youthforhumanrights.org";
}
$strHeader = "From: $send_from";
if ($_POST["send_cc"] != "") {
$strHeader .= "\nCc: " . $_POST["send_cc"];
}
if ($_POST["send_bcc"] != "") {
$strHeader .= "\nBcc: " . $_POST["send_bcc"];
}
$strBody = "Youth for Human Rights International - Contact Form";
$strBody .= "\n\nName: " . $_POST['name'];
$strBody .= "\nEmail: " . $_POST['email'];
$strBody .= "\r\n\nMessage: " . $_POST['message'];
mail($recipient, "Youth for Human Rights International - Contact Form", $strBody, $strHeader);
?> |
|
|
|
}
?> |
|
|
|
|
|
Donate—
Become a Member
|
|
Become a Member Support and join the group that's doing more to make human rights a reality than any other non-profit organization. Click here.
|
|
|
|

|
|
|
|
|
|