Survey Contact

Thank you ” . $clientName . “. Your score is:

” . $total . ” / 100

The grading system for your results is listed below

“;
$clientEmail .= “

90+ Effective management
60 – 89 Need for improvement
45 – 59 Ineffective
Below 45 complete lack of management control

“;
$clientEmail .= “

Contact Global Resources at (855) 338-0266 for more information on what you can do to improve your management score.

“;

$meEmail = “

A new management survey was taken on the Global Resources website.

“;
$meEmail .= “

Name: ” . $clientName . “

“;
$meEmail .= “

Title: ” . $Title . “

“;
$meEmail .= “

Email: ” . $Email . “

“;
$meEmail .= “

Company Name: ” . $CName . “

“;
$meEmail .= “

Phone: ” . $Phone . “

“;
$meEmail .= “

Address: ” . $Address . “, ” . $City . “, ” . $state . “, ” . $Zip . “

“;
$meEmail .= “

Website: ” . $Website . “

“;
$meEmail .= “

Industry: ” . $Industry . “

“;
$meEmail .= “

Revenue: ” . $Revvenue . “

“;
$meEmail .= “

Scores

“;
$meEmail .= “

Leadership: ” . $Leadership . ” / 15

“;
$meEmail .= “

Organizational Structure: ” . $OrgStructure . ” / 25

“;
$meEmail .= “

Cash Management: ” . $CashManagement . ” / 5

“;
$meEmail .= “

Profit Controls: ” . $ProfitControls . ” / 25

“;
$meEmail .= “

Sales & Marketing: ” . $Sales . ” / 15

“;
$meEmail .= “

Tax Planning: ” . $Tax . ” / 15

“;
$meEmail .= “

Total Score: ” . $total . ” / 100

“;

add_filter(‘wp_mail_content_type’,create_function(”, ‘return “text/html”; ‘));

//wp_mail(‘bieder@ipa-c.com’, ‘Survey Submit’, $meEmail);
//wp_mail($Email, ‘Survey Submit’, $clientEmail);

if(wp_mail(‘bieder@ipa-c.com’, ‘Survey Submit’, $meEmail)){
if(wp_mail($Email, ‘Survey Submit’, $clientEmail)){
//header(“Location:https://www.gr-us.com/thank-you/”);
//echo “

Congratulations! You will receive your Management Survey results shortly.

“;
echo ““;
}
}

} else {
//Contact form not complete
$q18=$_POST[‘Q18’];
$q19=$_POST[‘Q19’];
$q20=$_POST[‘Q20’];

$Leadership = $_POST[‘Leadership’];
$OrgStructure = $_POST[‘OrgStructure’];
$CashManagement = $_POST[‘CashManagement’];
$ProfitControls = $_POST[‘ProfitControls’];
$Sales = $_POST[‘Sales’];
$Tax = $q18+$q19+$q20;

$total = ($Leadership + $OrgStructure + $CashManagement + $ProfitControls + $Sales + $Tax);

$myform = “

To receive your score, fill out the form below.

Name*
Title
Email*
Company Name
Phone
Address*
City*
State*
Zip*
Website
Industry
Approximate Revenue

Number of Employees*

 
 
* Required fields

“;

echo $myform;
}
?>