“;
//echo(“$user”);
if($user==$key)
{
$complete = true;
}
else{
$error_msg = “You have entered wrong verification code”;
}*/
}
if($complete == true){
$one = $_POST[‘one’];
$comments1 = $_POST[‘comments1’];
$comments2 = $_POST[‘comments2’];
$comments3 = $_POST[‘comments3’];
$email = $_POST[‘username’];
$firstName = $_POST[‘firstName’];
$lastName = $_POST[‘lastName’];
$organization = $_POST[‘organization’];
$country = $_POST[‘country’];
if($_POST[“one”]){
$one=$_POST[“one”];
}
if($_POST[“one”]==”No”){
$comments1=$_POST[“comments1”];
}
$toAd = “nuwan@fclanka.com”;
$subject = “User feedback on this website”;
$message = “Your comments will help us improve www.cohred.org
1. I am able to find what I am looking for on the COHRED website. “.$one.”
If no, please explain.
“.$comments1.”
2. I use information on the COHRED website for my work, and use it in the following way:
“.$comments2.”
3. Participate in the continuous improvement of www.cohred.org
What features or changes would you like to see on this website?:
“.$comments3.”
Contact information is optional – including it will help us better respond your needs.
Email “.$email.”
First Name “.$firstName.”
Last Name “.$lastName.”
Organization “.$organization.”
Country “.$country.””;
$headers = “”.’From: root@cohred.org’. “\r\n” .’Bcc:nuwan@fclanka.com’ . “\r\n” .’X-Mailer: PHP/’ . phpversion();
$headers .= ‘MIME-Version: 1.0’ . “\r\n”;
$headers .= ‘Content-type: text/html; charset=iso-8859-1’ . “\r\n”;
if(!mail($toAd, $subject, $message,$headers))
{
echo “Comments was not sent“;
}
else
{
echo “
Thank You for your input.“;
}
}
?>
Read more