// NOT FROM BEFORE 1:14 HAH
//bust the cache
header( "Expires: Mon, 20 Dec 1998 01:00:00 GMT" );
header( "Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT" );
header( "Cache-Control: no-cache, must-revalidate" );
header( "Pragma: no-cache" );
/// *** CUSTOMER DATA *** ///
// List our lists
$list_array = array("Tips, Tools, & Strategies");
/// *** CUSTOMER DATA *** ///
// Page content
$page_content = "This is your page content; please update these part.";
//Validate email address & check that the form is submitted
if (isset($_POST["checksubmit"])) {
/// *** CUSTOMER DATA *** ///
//Constant Contact login
$username = "lynnrey";
$password = "HoneyFluffy2";
// Is this a subscribe or unsubscribe?
if (isset($_POST["unsub_request"]) && $_POST["unsub_request"] == "1") $url = "http://api.constantcontact.com/0.1/API_UnsubscribeSiteVisitor.jsp";
else $url = "http://api.constantcontact.com/0.1/API_AddSiteVisitor.jsp";
// Constant form data
$data = "loginName=" . $username;
$data .= "&loginPassword=" . $password ;
$data .= "&ea=" . urlencode(strip_tags($_POST["email"]));;
if (isset($_POST["First_Name"])) $data .= "&First_Name=" . urlencode(strip_tags($_POST["First_Name"]));
if (isset($_POST["Last_Name"])) $data .= "&Last_Name=" . urlencode(strip_tags($_POST["Last_Name"]));
// For each submitted list, we run through these actions.
foreach($_POST["list_name"] as $list_name) {
// Unique list for each loop iteration
if ($list_name) $list_data = "&ic=" . urlencode(strip_tags($list_name));
//If the form was submitted, and the email is valid, then POST via libcurl
$ch = curl_init(); // initialize curl handle
curl_setopt($ch, CURLOPT_URL,$url); // set url to post to
curl_setopt($ch, CURLOPT_FAILONERROR, 1);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);// allow redirects
curl_setopt($ch, CURLOPT_RETURNTRANSFER,1); // return into a variable
curl_setopt($ch, CURLOPT_TIMEOUT, 3); // times out after 4s
curl_setopt($ch, CURLOPT_POST, 1); // set POST method
curl_setopt($ch, CURLOPT_POSTFIELDS, $data . $list_data); // add POST fields
$cc_result = curl_exec($ch); // run the whole process
curl_close($ch);
// Create an array of the response values
$details = explode("\n",$cc_result);
// NEED ERROR CHECKING CODE HERE
//echo $cc_result;
}
if (isset($_POST["unsub_request"]) && $_POST["unsub_request"] == "1") {
if ($details[0] == "0") echo "You've been removed.";
// NEED ERROR CHECKING CODE HERE
else if ($details[0] == "500") echo "There was a problem removing you: " . $details[1];
}
else {
if (isset($_POST["User_Name"]) && $_POST["User_Name"] != "") $name_html = ", " . $_POST["User_Name"];
if ($details[0] == "0") include('success.php');
else if ($details[0] == "500") include('fail.php');
}
}
// Either the form was not sent yet, or the email was bad
else {
// If the form was sent, it means the email address was invalid
// Show page content
$page_content;
/// *** CUSTOMER DATA *** ///
// Print the form, including original values if tried to process at least once before
}
?>
Profitable Employee Solutions - Fast Answers to Your Employee Problems
Design Me A Killer Classified Ad Guaranteed To Attract Pools of Applicants!
Jim Toner, Irwin, PA
"I saved thousands of dollars in employee ads by hiring the right Office Manager within a week. I owe it all to Casey Reynolds' Profitable Employee Solutions System."
The average 32 year old has worked for nine different companies
Who is Casey Reynolds?
Entrepreneur:
Casey owns several businesses and has employed hundreds of people over the past 20 years.
Author:
Casey is the author of the highly successful Profitable Employee Solutions System:
Market to Attract Employees
Hire a Team of Superstars
Manage Your Employees for Success
Retain Your Employees for a Lifetime
Expert:
With over 20 years experience in hiring and retaining employees, Casey has:
Grown his service company to the largest in the city of Pittsburgh, PA boasting 4000 customers and 4 locations
Acquired millions of dollars in Real Estate
Placed 3 of his companies on Auto-Pilot
Joined the ranks of Millionaires
And he’s done all of this by:
Hiring and Retaining Hundreds of Outstanding Employees
Isnt it time you Stop the revolving door of employees and learn the secrets to hiring and retaining Superstars so that you can achieve your dream of independence and financial freedom because Nobody gets rich without employees. Teach Me the Secrets
When you sign up for Profitable Employee Solutions Tips, Tools & Strategies For Hiring & Retaining Employees (Privacy)
if (isset($_POST["checksubmit"])) {
echo "
Something about that email address doesn't look quite right. Please make sure it contains the \"@\" sign and has \"dot something\" at the end.
";
}
?>
The average American worker admits to squandering 1.7 hours per work day surfing the net & socializing with co-workers!!!