if(isset($_POST['submit']))
{
$email = $_POST['username'];
$firstName = $_POST['firstName'];
$lastName = $_POST['lastName'];
$organization = $_POST['organization'];
$country = $_POST['country'];
$comments1 = $_POST['comments1'];
$comments2 = $_POST['comments2'];
$comments3 = $_POST['comments3'];
$comments4 = $_POST['comments4'];
$comments5 = $_POST['comments5'];
$comments6 = $_POST['comments6'];
$toAd = "Devlin@cohred.org";
//$toAd = "AHAdialogue@cohred.org";
$subject = "AHA Dialogue Online Comments/suggestions";
$message = "Email: ".$email."\nFirst Name: ".$firstName."\nLast Name: ".$lastName."\nOrganization: ".$organization."\nCountry: ".$country."\n\n1. If you have comments on AHA study country draft reports, please insert them below:\n ".$comments1."\n\n2. If you want to share your own experiences and/or thoughts in relation to alignment and harmonization to feed the coming dialogue online, please consider the questions below:\n\n Your thoughts and experiences on how health research is funded in low income countries\n ".$comments2."\n\nHow can countries and donors coordinate better to focus health research on the needs of countries?\n ".$comments3."\n\nWhat practices do you think work well today?\n ".$comments4."\n\nWhat changes would you like to see?\n ".$comments5."\n\nHow do you think the Paris Declaration can best be used as an effective tool to improve health research support in low income countries?\n ".$comments6."";
$headers = "".'From: AHA'. "\r\n" .'Bcc: nuwan@fclanka.com' . "\r\n" .'X-Mailer: PHP/' . phpversion();
if(!mail($toAd, $subject, $message,$headers))
{
echo "Comments/suggestions was not sent“;
}
else
{
echo “
Thank You!
We were appreciate to your Comments/suggestions.“;
}
}
?>
Read more