<?php /* Contact Form from HTML Form Guide This program is free software published under the terms of the GNU Lesser General Public License. See this page for more info: http://www.html-form-guide.com/contact-form/simple-modal-popup-contact-form.html */ require_once "./include/fgcontactform.php"; require_once "./include/captcha-creator.php"; $formproc = new FGContactForm(); $captcha = new FGCaptchaCreator('scaptcha'); $formproc->EnableCaptcha($captcha); //1.Add your email address here. //You can add more than one receipients. $formproc->AddRecipient('*****@*****.**'); //<<---Put your email address here //2. For better security. Get a random string from this link: http://tinyurl.com/randstr // and put it here $formproc->SetFormRandomKey('dz0sbNoc7mZPgXa'); if (isset($_POST['submitted'])) { if ($formproc->ProcessForm()) { echo "success"; } else { echo $formproc->GetErrorMessage(); } }
<?php /* Contact Form from HTML Form Guide This program is free software published under the terms of the GNU Lesser General Public License. See this page for more info: http://www.html-form-guide.com/contact-form/creating-a-contact-form.html */ require_once "./include/fgcontactform.php"; require_once "./include/simple-captcha.php"; $formproc = new FGContactForm(); $sim_captcha = new FGSimpleCaptcha('scaptcha'); $formproc->EnableCaptcha($sim_captcha); //1. Add your email address here. //You can add more than one receipients. $formproc->AddRecipient('*****@*****.**'); //<<---Put your email address here //2. For better security. Get a random tring from this link: http://tinyurl.com/randstr // and put it here $formproc->SetFormRandomKey('CnRrspl1FyEylUj'); if (isset($_POST['submitted'])) { if ($formproc->ProcessForm()) { $formproc->RedirectToURL("thank-you.php"); } } ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US" lang="en-US"> <head> <meta http-equiv='Content-Type' content='text/html; charset=utf-8'/>