connectMySQL(); $refer = getenv("HTTP_REFERER"); if($db->isValidRetailer($_SESSION[rString])) { $header = "retailers/header1.tem.php"; } else { $header = "headerCMS2.tem.php"; } if(!$_POST[submit]){ $db->cacheHeader(); $detail[rFaxRec] = "Y"; $detail[rEmailRec] = "Y"; $title = "Sign-Up"; include("$db->newTemplatePath/$header"); include("$db->newTemplatePath/retailers/signup.form.tem.php"); include("$db->newTemplatePath/common.footerCMS1.tem.php"); } elseif($errors = $ret->validateSignupForm($_POST)){ $db->cacheHeader(); $detail = $_POST; $title = "Sign-Up"; include("$db->newTemplatePath/$header"); include("$db->newTemplatePath/retailers/signup.form.tem.php"); include("$db->newTemplatePath/common.footerCMS1.tem.php"); } else { $db->cacheHeader(); $_POST[rID] = $ret->saveRetailer($_POST); $ret->sendWordEmail($_POST); include("$db->newTemplatePath/retailers/cdcSubmit.tem.php"); include("$db->newTemplatePath/$header"); include("$db->newTemplatePath/retailers/signup.complete.tem.php"); include("$db->newTemplatePath/common.footerCMS1.tem.php"); } $db->disconnectMySQL(); ?>