MenuMenu

CLICK THIS  FOR : STATEWIDE COLOR MAP OF  REFUGES AND CURRENT 2015 CALIFORNIA DUCK HUNTING REFUGE TAKE  REPORT  :

SUBSCRIBE TO OUR WEEKLY "HOT SPOT" NEWSLETTER


<?php $action=$_REQUEST['action']; if ($action=="") /* display the contact form */ { ?>
Your name:

Your email:

Your message:

<?php } else /* send the submitted data */ { $name=$_REQUEST['name']; $email=$_REQUEST['email']; $message=$_REQUEST['message']; if (($name=="")||($email=="")||($message=="")) { echo "All fields are required, please fill the form again."; } else{ $from="From: $name<$email>\r\nReturn-path: $email"; $subject="Message sent using your contact form"; mail("ranchbrokers@yahoo.com", $subject, $message, $from); echo "Email sent!"; } } ?> You can also check our tutorial about jQuery Contact forms with Ajax and PHP.