Hello Guys,
Here is the code that i have which works fine as it puts data to my database, but am not sure where or how to put it so then after the form has been completed i get an email to say that some one has completed the form and check your account.
if ($resp->is_valid) {
$sql = "INSERT INTO $db_table(ItemNumber) values ('".mysql_real_escape_string(stripslashes($_REQUEST['ItemNumber']))."')";
if($result = mysql_query($sql ,$db)) {
echo '<script type="text/javascript">';
echo 'window.location = "http://www.domain.co.uk/thankyou.html"';
echo '</script>';
} else {
echo "ERROR: ".mysql_error();
}
} else {
# set the error code so that we can display it. You could also use
# die ("reCAPTCHA failed"), but using the error message is
# more user friendly
$error = $resp->error;
Thank you