ob_start();
include('inc/class.passgen.php');
$passGen = new passGen(5);
$hash = $_POST['hash'];
$pass = $_POST['pass'];
if($passGen->verify($pass, $hash)){
$validate = 1;
$message_validate='
Security Code Valid!';
}else{
$message_validate='
Security Code Failed!';
$validate='0';
}
$hash = $passGen->password(0, 1);
if (isset($_POST['submit']) ) { // Handle the form.
// set form values//
if (!empty($_POST['fullname'])) {
$fullname = $_POST['fullname'];
}
if (!empty($_POST['phone'])) {
$phone = $_POST['phone'];
}
if (!empty($_POST['email'])) {
$email = $_POST['email'];
}
if (!empty($_POST['title'])) {
$title = $_POST['title'];
}
if (!empty($_POST['company'])) {
$company = $_POST['company'];
}
if (!empty($_POST['address'])) {
$address = $_POST['address'];
}
if (!empty($_POST['city'])) {
$city = $_POST['city'];
}
if (!empty($_POST['state'])) {
$state = $_POST['state'];
}
if (!empty($_POST['zipcode'])) {
$zip = $_POST['zipcode'];
}
if (!empty($_POST['country'])) {
$country = $_POST['country'];
}
if (!empty($_POST['special_report1'])) {
$special_report1 = get_template_directory_uri() . '/pdfs/AXLF-A_6-08_Final.pdf';
}
if (!empty($_POST['special_report2'])) {
$special_report2 = get_template_directory_uri() . '/pdfs/RSP-MP_5-08.pdf';
}
if (!empty($_POST['special_report3'])) {
$special_report3 = get_template_directory_uri() . '/pdfs/PTP-MP_05-08.pdf';
}
/* if (!empty($_POST['special_report4'])) {
$special_report4 = get_template_directory_uri() . '/pdfs/SCE-MP_05-08.pdf';
}
if (!empty($_POST['special_report5'])) {
$special_report5 = get_template_directory_uri() . '/pdfs/ABCSM-MP_9-08(2).pdf';
}
if (!empty($_POST['special_report6'])) {
$special_report6 = get_template_directory_uri() . '/pdfs/BST-MP_05-08.pdf';
}
if (!empty($_POST['special_report7'])) {
$special_report7 = get_template_directory_uri() . '/pdfs/AXLF-A_6-08_Final.pdf';
}
if (!empty($_POST['special_report8'])) {
$special_report8 = get_template_directory_uri() . '/pdfs/AX-OArticle-Rev10-2-17-09.pdf';
}
if (!empty($_POST['special_report9'])) {
$special_report9 = get_template_directory_uri() . '/pdfs/LFX-FieldofDreams.pdf';
}
if (!empty($_POST['special_report10'])) {
$special_report10 = get_template_directory_uri() . '/pdfs/LFX-OmanRev1.pdf';
}
if (!empty($_POST['special_report11'])) {
$special_report11 = get_template_directory_uri() . '/pdfs/LFX-FircrestRev1.pdf';
}
if (!empty($_POST['special_report12'])) {
$special_report12 = get_template_directory_uri() . '/pdfs/LFX-AsianGypsyMoth.pdf';
}
if (!empty($_POST['special_report13'])) {
$special_report13 = get_template_directory_uri() . '/pdfs/LFX-GISTeamNetworking.pdf';
} */
include("inc/check_spam.inc");
//$send_email ='
[email protected]';
$send_email ='
[email protected]';
$send_email_toclient = $email;
$subject ="Special Reports You Requested from Management Pro";
$subject2 ="Special Reports Requested from Management Pro";
#$headers_clients = "From:
[email protected]";
$headers_clients = "From:
[email protected]";
$message_sent ='0';
if($fullname && $email && $validate && $validate_forspam){
$message_sent ='1';
$message_validate_send= "
Thank you! The links to the resources you've requested have been sent!
";
mail($send_email_toclient, $subject,
"Thank you for requesting one or more Special Reports from ManagementPro.com. We welcome your comments, questions, and/or feedback about the value of these resources. As a bonus, you automatically will receive our monthly newsletter with practical advice and insights you can use right away. Please feel free to contact us at
[email protected] Enjoy!\n\n\n"
."Click on the link(s) below to gain access to the Management Pro special reports(s) you requested: \n"
.$special_report1."\n".$special_report2."\n".$special_report3."\n".$special_report4."\n".$special_report5."\n".$special_report6."\n".$special_report7."\n".$special_report8."\n".$special_report9."\n".$special_report10."\n".$special_report11."\n".$special_report12."\n".$special_report13."\n"
."\n\n\nThank you, \nTerry Schmidt\nManagement Pro\nP.O. Box 69197\nSeattle, WA 98168 | 206.433. 0700 \n\n", $headers_clients);
mail($send_email, $subject2, "Special Reports Form Submission\n"
."Full Name: ".$fullname."\n"
."Phone: ".$phone."\n"
."Email: ".$email."\n"
."Title: ".$title."\n"
."Company: ".$company."\n"
."Address: ".$address."\n"
."City: ".$city."\n"
."State: ".$state."\n"
."Zip: ".$zip."\n"
."Country: ".$country."\n"
."Selected Special Reports: \n".$special_report1."\n".$special_report2."\n".$special_report3."\n".$special_report4."\n".$special_report5."\n".$special_report6."\n".$special_report7."\n".$special_report8."\n".$special_report9."\n".$special_report10."\n".$special_report11."\n".$special_report12."\n".$special_report13, $headers_clients);
}else{
$message_validate_send= "
The message has not been sent! Make sure to re-select the Special Reports you are requesting.
";
}
}
?>
Sign up below and you’ll immediately receive the special reports you select.
We respect your privacy. We never sell, lease, lend, or otherwise share our lists.
We value our relationship and will always preserve the confidentially of your information.
These thoughtful and practical reports cover key strategic topics.
Please select the special report(s) you would like to receive: