How to Integrate a Double Meta Refresh with a Rotator Script?
(Note: I've cross-posted this to the CPA section here on the Warrior forum.)
I just did a search to find instructions and the code for doing a double meta refresh. I found it along with a fairly clear explanation (finally!) on how to do a double meta refresh here:
Blank the Referrer with Double Meta Refresh - Web Design & SEO Company
However, I'm a little unclear on how to integrate it with a simple PHP script that rotates different offers automatically.
Here's an example of the rotator script I've used right on the landing page:
$counthandle=fopen("count.txt","r");
$getcurrent=fread($counthandle,filesize("count.txt "));
fclose($counthandle);
$getcurrent = trim($getcurrent);
switch($getcurrent){
case "1":
$link = "http://myaffiliatelink.com";
$offer = "Target $500 Gift Card -- CPA Empire (6757)";
$getcurrent = "2";
$offer_text = "Vote Now For a Chance To Win A Cool Gift<br><br>Enter your e-mail address on the next page to continue.";
break;
case "2":
$link = "http://myaffiliatelink.com";
$offer = "JC Penney $500 Gift Card -- CPA Empire (6762)";
$getcurrent = "3";
$offer_text = "Vote Now For a Chance To Win A Cool Gift<br><br>Enter your e-mail address on the next page to continue.";
break;
case "3":
$link = "http://myaffiliatelink.com";
$offer = "Sears $500 Gift Card -- CPA Empire (6764)";
$getcurrent = "1";
$offer_text = "Vote Now For a Chance To Win A Cool Gift<br><br>Enter your e-mail address on the next page to continue.";
break;
}
//update the file
$counthandle=fopen("count.txt","w");
fputs($counthandle,$getcurrent);
fclose($counthandle);
Can someone please tell me how to integrate the two?
Thanks so much!
Michelle
The 2nd Amendment, 1789 - The Original Homeland Security.
Gun control means never having to say, "I missed you."