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"); } } ?> <!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" />