$shorttitle="Request for information"; include("increlpath.php"); $taal="en"; include($relpath."inc/incvars.php"); require_once($relpath."./inc/functions.php"); $title=$company . " - " . $shorttitle; include($relpath."inc/header.php"); include($relpath."inc/bodystart.php"); ?> : if(isset($_GET['webmaster'])) $Webmaster="SELECTED"; if(isset($_GET['algemeen'])) $Algemeen="SELECTED"; if(!strcmp($_POST['Submit'],"Submit")||!strcmp($_POST['submit'],"Submit")) { $Algemeen=""; $Bestellingen=""; $Facturatie=""; $Boekhouding=""; $Klachten=""; switch ($_POST['aan']) { case "General": $subject = "General"; $Algemeen="SELECTED"; $mailto = "info@unitedinnovators.com"; break; case "Orders": $subject = "Orders"; $Bestellingen="SELECTED"; $mailto = "info@unitedinnovators.com"; break; case "Billing": $subject = "Billing"; $Facturatie="SELECTED"; $mailto = "info@unitedinnovators.com"; break; case "Accountancy": $subject = "Accountancy"; $Boekhouding="SELECTED"; $mailto = "info@unitedinnovators.com"; break; case "Complaints": $subject = "Complaints"; $Klachten="SELECTED"; $mailto = "info@unitedinnovators.com"; break; case "Webmaster": $subject = "website united innovators"; $Webmaster="SELECTED"; $mailto = "support@wivern.be"; break; } $mailfrom=$_POST['mailfrom']; $subject = $subject . " - via de website: " . $_POST['subject']; /* kleine controle om te zien of alle velden goed zijn ingevuld voor we de mail gaan sturen. */ if(strlen($_POST['subject'])>=5 && strlen($_POST['body'])>10 && strlen($_POST['naam'])>5 && strlen($_POST['tel']>8) && preg_match_all("/^\w+[\+\.\w-]*@([\w-]+\.)*\w+[\w-]*\.([a-z]{2,4}|\d+)$/i", $_POST['mailfrom'], $patternMatches)) { $text = "Naam: ". $_POST['naam'] . "\nTel: " . $_POST['tel'] . "\n\n"; $text = $text . str_replace("\n.", "\n..", $_POST['body']); $text = wordwrap($text, 70); if (@mail($mailto, $subject, $text, "From: <$mailfrom>\n"."Reply-To: <$mailfrom>\n") ) { /* logmailtofile($mailto, $subject, $text, $mailfrom,"../newsflash/contactbackupfile.txt");*/ logmailtofile($mailto, $subject, $text, $mailfrom, $relpath.$taal."/newsflash/contactbackupfile.txt"); $_POST['naam']=""; $_POST['tel']=""; $_POST['mailfrom']=""; $_POST['subject']=""; $_POST['body']=""; $Algemeen=""; $Bestellingen=""; $Facturatie=""; $Boekhouding=""; $Klachten=""; $Webmaster=""; echo "
Your request has been sent.
Your request hasnot been sent. Please try again.
Your request hasnot been sent. Please fill in all the fields.
I would like information about...