$SITE_URL="http://".$_SERVER['HTTP_HOST']."/projects/gladys/"; include("sendmail.php"); include_once('recaptchalib.php'); if(isset($_POST["contact_submit"])) { /*echo "
"; print_r($_POST); echo ""; exit;*/ extract($_POST); $Error=""; $privatekey = "6LcwudsSAAAAADnnvGlPdw06Pn_PoAsmbDWhR5NG"; $resp = recaptcha_check_answer ($privatekey, $_SERVER["REMOTE_ADDR"], $_POST["recaptcha_challenge_field"], $_POST["recaptcha_response_field"]); $_SESSION['captcha_keystring']; if (!$resp->is_valid) { $fname1=$fname; $email1=$email; $phone1=$phone; $comments1=$comments; $Error =0; //$msg="You have entered wrong verification code!"; exit; } else { $to ="awosemo@gmail.com, gladyswatersprings@gmail.com"; $from = $email; $subject= 'Gladys Watersprings Academy - Contact Inquiry'; $mailcontent = '
![]() |
|
| Dear Admin | |
| '.$fname.' submited the Contact details. Details are as below : |
|
| Name: | '.$fname.' |
| E-mail: | '.$email.' |
| Phone: | '.$phone.' |
| Message: | '.$comments.' |
| Thank You, Gladys Watersprings Academy |
|
You have entered wrong verification code!
}elseif($Error=='1'){ ?>Thank you for contacting us. We will respond as soon as possible.
} ?>No. 24 Oredunni Street,
Iju, Agege, Lagos State