your code
<input type='submit' value='Send Message'/>
change to
<input type='submit' name='submit' value='Send Message'/>
your code
<?php
include_once("recaptchalib.php");
define("PUB_KEY", "6LfUuMcSAAAAAAY3ykPm2KZ2cHnSyoSRDaG1zTZi");
change to
<?php
include_once("recaptchalib.php");
define("PUB_KEY", "6LfUuMcSAAAAAAY3ykPm2KZ2cHnSyoSRDaG1zTZi");
if($_POST['submit'])
{
$name = $_POST['name'];
$email= $_POST['email'];
$message= $_POST['message'];
$headers = "MIME-Version: 1.0\r\n";
$headers.= "Content-type: text/html; charset=iso-8859-1\r\n";
$headers.= "From: XXXXX\r\nReply-To: XXXX@XXXXX.com";
$subject = "Your SUBJECT";//
$final_message = "MESSAGE ---- <br/>
name -- $name <br/>
email -- $email<br/>
message -- $message<br/> ";
mail($to, $subject, $final_message, $headers);
}
?>