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 */ if (elgg_is_logged_in()) { $user = elgg_get_logged_in_user_entity(); $sender_name = $user->name; $sender_email = $user->email; } require_once "./include/fgcontactform.php"; //require_once("./include/simple-captcha.php"); $email = elgg_get_plugin_setting('email', 'contactform'); //$list1=elgg_get_plugin_setting('list1','contactform'); $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($email); //<<---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'); $formproc->AddFileUploadField('photo', '', 5120); if (isset($_POST['submitted'])) { if ($formproc->ProcessForm()) { system_messages(elgg_echo('contactform:thankyoumsg')); forward("mod/contactform/index.php"); // forward(elgg_get_site_url());
<?php require_once "./include/fgcontactform.php"; $formproc = new FGContactForm(); $formproc->SetFromAddress('*****@*****.**'); $formproc->AddRecipient('*****@*****.**'); //email to receive $formproc->SetFormRandomKey('CnRrspl1FyEylUj'); if (isset($_POST['submitted'])) { if ($formproc->ProcessForm()) { unset($_SESSION["captchaVal"]); echo '<script>alert("Email has been sent!"); window.location = "http://yunified.com";</script>'; //$formproc->RedirectToURL("http://www.yunified.com?send=1"); } } ?> <!doctype html> <html> <head> <meta name="viewport" content="width=device-width, initial-scale=1.0,user-scalable=0"/> <meta charset="utf-8"> <title>Contact | [yunified]</title> <script src="js/jquery.js"></script> <script src="js/mini_slider.js"></script> <script type='text/javascript' src='js/h5validate.js'></script> <link rel="stylesheet" type="text/css" href="css/style.css"> <link rel="stylesheet" type="text/css" href="css/css.css"> <link href="favicon.ico" type="image/x-icon" rel="icon"> <link href="favicon.ico" type="image/x-icon" rel="shortcut icon"> </head>
<?php /* Contact Form from HTML Form Guide This program is free software published under the terms of the GNU Lesser General Public License. */ require_once "./include/fgcontactform.php"; $formproc = new FGContactForm(); //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'/>
<?php require_once "includes/fgcontactform.php"; $formproc = new FGContactForm(); $formproc->AddRecipient('*****@*****.**'); $formproc->SetFormRandomKey('gkEFthfv6gvGAuL'); if (isset($_POST['submitted'])) { if ($formproc->ProcessForm()) { $formproc->RedirectToURL("thank-you.html"); } }
<?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"; $formproc = new FGContactForm(); //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('IKBh4ZbovyA0sH3'); 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'/> <title>Contact Me</title> <link rel="STYLESHEET" type="text/css" href="contact.css" /> <script type='text/javascript' src='scripts/gen_validatorv31.js'></script>
<?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"; $email = elgg_get_plugin_setting('email', 'contactform'); $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($email); //<<---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('S3EVLX2gbB6JprU'); if (isset($_POST['submitted'])) { if ($formproc->ProcessForm()) { system_messages(elgg_echo('contactform:thankyoumsg')); forward(elgg_get_site_url()); } } ?> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US" lang="en-US">
<?php require_once "./include/fgcontactform.php"; $formproc = new FGContactForm(); if (isset($_POST['submitted'])) { if ($formproc->ProcessForm()) { echo "success"; } else { echo $formproc->GetErrorMessage(); } }
<?php require_once "./include/fgcontactform.php"; require_once "./include/captcha-creator.php"; $formproc = new FGContactForm(); $captcha = new FGCaptchaCreator('scaptcha'); $formproc->EnableCaptcha($captcha); $formproc->AddRecipient('*****@*****.**'); $formproc->SetFormRandomKey('IfqTnXtLvOmaZ0c'); 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'/> <title>Contact us</title> <link rel="STYLESHEET" type="text/css" href="contact.css" /> <script type='text/javascript' src='scripts/gen_validatorv31.js'></script> <script type='text/javascript' src='scripts/fg_captcha_validator.js'></script> </head> <body> <!-- Form Code Start --> <form id='contactus' action='<?php echo $formproc->GetSelfScript(); ?>
<?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/php-contact-form-tutorial.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 tring from this link: http://tinyurl.com/randstr // and put it here $formproc->SetFormRandomKey('gf07a2Kt5ORGXWz'); //3. Set Conditional field and conditional receipients //Update the destination email addresses $formproc->SetConditionalField('query_type'); $formproc->AddConditionalReceipent('General', '*****@*****.**'); $formproc->AddConditionalReceipent('Sales', '*****@*****.**'); $formproc->AddConditionalReceipent('Billing', '*****@*****.**'); $formproc->AddConditionalReceipent('Technical', '*****@*****.**'); if (isset($_POST['submitted'])) { if ($formproc->ProcessForm()) { $formproc->RedirectToURL("thank-you.php");
<?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/contact-form-attachment.html */ require_once "./include/fgcontactform.php"; $formproc = new FGContactForm(); //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('HG9hPBpn9Bn26yg'); $formproc->AddFileUploadField('photo', 'jpg,jpeg,gif,png,bmp', 2024); if (isset($_POST['submitted'])) { if ($formproc->ProcessForm()) { $formproc->RedirectToURL("thank-you.html"); } } ?> <!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'/> <title>Contact us</title> <link rel="STYLESHEET" type="text/css" href="contact.css" />
<?php require_once "./include/fgcontactform.php"; require_once "./include/captcha-creator.php"; $formproc = new FGContactForm(); $captcha = new FGCaptchaCreator('scaptcha'); $formproc->EnableCaptcha($captcha); $formproc->AddRecipient('*****@*****.**'); $formproc->SetFormRandomKey('3usQyspxMWnZK1F'); $formproc->AddFileUploadField('photo', 'jpg,jpeg,gif,png,bmp', 2024); 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'/> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="description" content=""> <meta name="author" content=""> <link rel="STYLESHEET" type="text/css" href="contact.css" /> <script type='text/javascript' src='scripts/gen_validatorv31.js'></script> <script type='text/javascript' src='scripts/fg_captcha_validator.js'></script> <link href="css/bootstrap.min.css" rel="stylesheet"> <link href="css/small-business.css" rel="stylesheet"> <link href="css/styles.css" rel="stylesheet">
<?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/php-contact-form-tutorial.html */ require_once "./include/fgcontactform.php"; $formproc = new FGContactForm(); //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('octmXiS0P72qXHE'); 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'/> <title>Contact us</title> <link href='http://fonts.googleapis.com/css?family=Raleway:500,100,200' rel='stylesheet' type='text/css'> <link rel="STYLESHEET" type="text/css" href="styles/contact.css" />
<?php /* Contact Form from HTML Form Guide This program is free software published under the terms of the GNU Lesser General Public License. */ require_once "include/fgcontactform.php"; $formproc = new FGContactForm(); //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/contact-form-attachment.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 tring from this link: http://tinyurl.com/randstr // and put it here $formproc->SetFormRandomKey('XsHVufPpgD9Epwl'); $formproc->AddFileUploadField('photo', 'jpg,jpeg,gif,png,bmp', 2024); $formproc->AddFileUploadField('resume', 'doc,docx,pdf,txt', 2024); 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">
<?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/contact-form-attachment.html */ require_once "./include/fgcontactform.php"; $formproc = new FGContactForm(); //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('HG9hPBpn9Bn26yg'); $formproc->AddFileUploadField('photo', 'jpg,jpeg,gif,png,bmp', 2024); 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'/> <title>Contact us</title> <link rel="STYLESHEET" type="text/css" href="contact.css" />
<?php /* Contact Form from HTML Form Guide This program is free software published under the terms of the GNU Lesser General Public License. */ require_once "fgcontactform.php"; $formproc = new FGContactForm(); //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 require_once "./include/fgcontactform.php"; $formproc = new FGContactForm(); //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'/> <title>Newsletter</title> <style type="text/css">@import url("http://fonts.googleapis.com/css?family=PT+Sans");</style> <style type="text/css">@import url("http://fonts.googleapis.com/css?family=Yanone+Kaffeesatz");</style> <link rel="stylesheet" type="text/css" href="contact.css" /> <script type='text/javascript' src='scripts/gen_validatorv31.js'></script> </head> <body> <!-- Form Code Start -->
<?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/php-contact-form-tutorial.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 tring from this link: http://tinyurl.com/randstr // and put it here $formproc->SetFormRandomKey('n91LqHNvMrpoXte'); 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'/>
</head> <body> <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/three.js/r71/three.js"></script> <script src="js/Projector-min.js"></script> <script src="js/CanvasRenderer-min.js"></script> <script src="js/main-min.js"></script> <!--<script type='text/javascript' src='js/gen_validatorv31-min.js'></script> --> <?php require_once "./include/fgcontactform.php"; $formproc = new FGContactForm(); $formproc->SetFormRandomKey('CnRrspl1FyEylUj'); /* contact form validations */ if (isset($_POST['submitted'])) { if ($formproc->ProcessForm()) { ?> <script> $(document).ready(function (){ $('.alert-success').fadeIn(); $('#name').val(''); $('#email').val(''); $('#message').val(''); window.location.href = '#contacts'; setTimeout( "jQuery('.alert').fadeOut();",2000 ); }); </script>
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 */ if (elgg_is_logged_in()) { $user = elgg_get_logged_in_user_entity(); $sender_name = $user->name; $sender_email = $user->email; $sender_depart = $user->department; } require_once "./include/fgcontactform.php"; //require_once("./include/simple-captcha.php"); $email = elgg_get_plugin_setting('email', 'contactform'); //$list1=elgg_get_plugin_setting('list1','contactform'); $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($email); //<<---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'); $formproc->AddFileUploadField('photo', 'jpg,jpeg,gif,png,pdf,doc,docx,rar.zip,', 5120); // Get post_max_size and upload_max_filesize $post_max_size = elgg_get_ini_setting_in_bytes('post_max_size'); $upload_max_filesize = elgg_get_ini_setting_in_bytes('upload_max_filesize'); // Determine the correct value $max_upload = $upload_max_filesize > $post_max_size ? $post_max_size : $upload_max_filesize;
<?php require_once "/fgcontactform.php"; $formproc = new FGContactForm(); //1. Add your email address here. //You can add more than one recipients. $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('2323r23rsddsf'); if (isset($_POST['submitted12'])) { if ($formproc->ProcessForm()) { $formproc->RedirectToURL("index.html"); } }
<?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/contact-form-attachment.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 tring from this link: http://tinyurl.com/randstr // and put it here $formproc->SetFormRandomKey('E6bZFICMgOfOnxI'); $formproc->AddFileUploadField('photo', 'jpg,jpeg', 20240); 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>
<?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-php-contact-form.html */ require_once "./include/fgcontactform.php"; date_default_timezone_set('America/Denver'); $formproc = new FGContactForm(); //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'); $hideForm = false; if (isset($_POST['submitted'])) { if ($formproc->ProcessForm()) { //$formproc->RedirectToURL("/"); $result = "<div class=\"message success\">Thank you {$formproc->name}, your message has been sent. We will try\n to respond soon.</div>"; } else { $result = '<div class="alert-error">Sorry there was an error sending your message. Please try again later</div>'; } echo $result; $hideForm = true; } if (!$hideForm) {
<?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/php-contact-form-tutorial.html */ require_once "./include/fgcontactform.php"; $formproc = new FGContactForm(); //1. Add your email address here. //You can add more than one receipients. $formproc->AddRecipient('*****@*****.**'); //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'/> <title>Send a Message</title> <link rel="STYLESHEET" type="text/css" href="contact.css" /> <script type='text/javascript' src='scripts/gen_validatorv31.js'></script> </head>
<?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/php-contact-form-tutorial.html */ require_once "./include/fgcontactform.php"; $formproc = new FGContactForm(); //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'/> <title>Contact us</title> <style type="text/css">@import url("http://fonts.googleapis.com/css?family=PT+Sans");</style> <style type="text/css">@import url("http://fonts.googleapis.com/css?family=Yanone+Kaffeesatz");</style>