the script will count how many leads or sales have been made. When a paying user comes to the last page "thank you page" my code will count one sale or one lead. The thing is, if the user clicks on the refresh button there will be 2 leads or sales instead of one and thats not good.
Your right about IP, its probably not the best way...
So I mixed this code together using sessions but its not working yet 🙂 maybe you can help?
if(!isset($_SESSION['check_lead_sale'])) {
//my code that counts the lead or sale
}
$_SESSION['check_lead_sale'] = 1; //any value
Thats not working?