wwwroot", $HTTP_REFERER))) { $frm=$_POST; if ($frm['action']=="contact"){ if (empty($frm['email'])){ header("Location:$Config->wwwroot/oops.html"); die(); } contact_email_form($frm); contact_email_signup($frm); ($frm["optemailme"]=="emailme") ? email_signup($frm) : ""; header("Location:$Config->wwwroot/thanks.html"); } } ?> templatedir/header.inc"); if ((eregi("Mac",$user_agent)) || (eregi("Firefox",$user_agent))) { // is mac or Firefox include("$Config->templatedir/macmenu.inc"); }else{ include("$Config->templatedir/menu.inc"); } include("$Config->templatedir/signup.inc"); } else { include("$Config->templatedir/header1.inc"); include("$Config->templatedir/macmenu.inc"); } ?>

templatedir/contacttitle.inc"); ?>
contacthead");?> wwwroot/contact.php\" METHOD=\"POST\">"); ?>

Your Name:


E-mail Address:


Daytime Phone Number:

How did you come to our Web Site?

Please give us any additional information or comments here:


 Add me to the email list

 

 



templatedir/footer.inc"); /******************Begin Functions*****************************/ function email_signup($frm){ $qresult=db_query("INSERT INTO email_signups( timestamp ,name ,email ,optemailme )VALUES( now() ,'$frm[name]' ,'$frm[email]' ,'$frm[optemailme]')"); } function contact_email_form($frm){ global $Config; $var=new Object; $var->name=$frm["name"]; $var->email=$frm["email"]; $var->phone=$frm["phone"]; $var->howhear=$frm["howhear"]; $var->phone=$frm["phone"]; $var->comments=$frm["comments"]; $var->site=$Config->wwwroot; $var->dir=$Config->dirroot; $var->contactmail=$Config->support; $var->adminname=$Config->adminname; $var->busname=$Config->busname; $var->support=$Config->support; $var->supportline=$Config->supportline; if ($frm["optemailme"]=="emailme"){ $var->status="This user has been added to the mailing list"; }else{ $var->status=" "; } $emailbody=read_template("$var->dir/emails/emailsignupadmin.inc", $var); $subject="$var->busname Contact Inquiry"; mail ("$var->adminname <$var->support>",$subject,$emailbody,"From: $var->name <$var->email> \nReply-To: $var->email\nX-Mailer: PHP/" . phpversion()); } function contact_email_signup($frm){ global $Config; $var=new Object; $var->firstname=$frm["name"]; $count = count(explode(" ", $var->firstname)); if ($count > 1){ $WordLimit = 2; $Words = explode(" ",$frm["name"],$WordLimit); array_pop($Words); foreach ($Words as $Word){ $var->name=$Word; } } else { $var->name=$var->firstname; } $var->email=$frm["email"]; $var->site=$Config->wwwroot; $var->dir=$Config->dirroot; $var->adminname=$Config->adminname; $var->busname=$Config->busname; $var->contactmail=$Config->support; $var->support=$Config->support; $var->supportline=$Config->supportline; $var->remove="$Config->wwwroot/leaveemaillist.php" ; $var->status=""; if ($frm["optemailme"]=="emailme"){ $var->status="You have requested to be added to the $var->busname mailing list.\nTo remove your address from the list, please go here - $var->remove?name=$var->name&email=$var->email"; } $emailbody=read_template("$var->dir/emails/emailsignupuser.inc", $var); $subject="$var->busname Contact Auto Response"; mail ("$var->name <$var->email>",$subject,$emailbody,"From:$var->support\nReply-To:$var->support\nX-Mailer: PHP/" . phpversion()); } /******************End Functions*****************************/ ?>