and here is the email coding:
if(isset($_POST['email'])) {
$email_to = "youremail@gmail.com";
$email_subject = "
How is your weather now
";$city = $_POST['city'];
$month = $_POST['month'];
$year = $_POST['year'];
$type = $_POST['type'];
$add = $_POST['add'];
$email_message .= "In ".clean_string($city) . " in the month of " .clean_string($month).clean_string($year)." you observed the following weather: ""\n";
$check =0;
$top = array('Sunshine', 'Clouds', 'Rain', 'Hail', 'Sleet', 'Snow', 'Wind', 'Cold', 'Heat', 'Fog', 'Humidity');
foreach ($_POST['type'] as $type){
echo "
}
?>
// create email headers
$headers = 'From: '.$email_from."\r\n".
'Reply-To: '.$email_from."\r\n" .
'X-Mailer: PHP/' . phpversion();
@mail($email_to, $email_subject, $email_message, $headers);
?>
Thank you for contacting us. We will be in touch with you very soon.
}
?>