dakasadaka Posted June 8, 2010 Share Posted June 8, 2010 Hello I bussy with making of ad managment with pay per click. So hier is how I set it up till now: 'o_ads_stats', 'ad_id INTEGER NOT NULL, ad_ip VARCHAR(100) NOT NULL, ad_browser VARCHAR(100) NOT NULL, ad_bid DECIMAL(10,2), ad_date DATETIME NOT NULL' So link should be like this: www.websiteplaats.nl/ get.php?user=1&ad_bid and codes are like this: $getLink = new ownerGet(); $getLink->o_id = $_GET['o']; $getLink->ad_id = $_GET['aid']; $getLink->ad_bid = $_GET['abid']; $getLink->ad_bid_extra = $_GET['abidextra']; $getLink->ad_ip = $_SERVER['REMOTE_ADDR']; $getLink->ad_browser = $_SERVER['HTTP_USER_AGENT']; and I have ev erthing I need..... Now I want to hide the bid from get method.....so I was thinking about md5 encoding.... but hier is my imortant request: I want to charge people if for that one time when browser is loaded and not every singel time if user click back and clicks again. How can I do this with encoding get to hide info? Is there any opensource where I can learn from? tnx. Daka Link to comment https://forums.phpfreaks.com/topic/204209-ad-managment-ppc/ Share on other sites More sharing options...
xcandiottix Posted June 8, 2010 Share Posted June 8, 2010 Are you saying that if a user visits the site and there is a charge that if they click a link and then press the back button to the original page there is not a second charge? If so you could either use a session(), cookie, or store their IP in your database and check that if they have already been to this page then do not execute the code that creates a charge. Link to comment https://forums.phpfreaks.com/topic/204209-ad-managment-ppc/#findComment-1069602 Share on other sites More sharing options...
ignace Posted June 8, 2010 Share Posted June 8, 2010 I want to charge people if for that one time when browser is loaded and not every singel time if user click back and clicks again. http://en.wikipedia.org/wiki/Post/Redirect/Get Link to comment https://forums.phpfreaks.com/topic/204209-ad-managment-ppc/#findComment-1069654 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.