Alright guys hopefully someone can help my headache! I been searching and googling non stop to find out how to do this.

I need a custom interstitial redirect page. Either by session or cookie (which do you think is the best route to go?). The way I need it setup is:

-Did they see a interstitial in the last xxx time frame
-if not forward them to the interstitial page which shows the ad
-Then cookie them as having seen the ad
-now the tough part is for the viewers to return to the previous page and I dont have a clue how to do that.

Currently I have phpAdsNew I think its called and they have a option for interstitial ads! PERFECT RIGHT? No! Here is why....I have a advertiser that has a flash ad....and when doing the phpadsnew interstitial way, when you close the ad, the music in the background of the ad is still playing. The only way to get that music to stop after you "close the ad" would be to code the actual flash file and I dont have that, Im using their link.

So I want to use a interstitial redirect with cookies. I heard this is the best way to go. I have not really messed with cookies that much and have been researching on how to do this and im stumped bad! So if anyone can help that would be greatly appreciated!

Thanks

    update:

    Ok I finally figured out using the "$_SERVER['HTTP_REFERER'];" function I can get from the interstitial page back to where they were. However the big part is getting them to the interstitial....like only display a interstitial ad x amount of times in a given time frame.

    And for anyone that would like to see my code on the interstitial.php page I am doing here it is:

    
    <form action="<? echo $_SERVER['HTTP_REFERER']; ?>" method="post"><input type="image" src="../images/btn_skip.gif" /></form>
    
    

    Works like a charm getting them back to the page they were on

      Write a Reply...