How to stop users from resubmitting data after refresh?
Posted: Fri Aug 04, 2006 9:01 am
Okay, I've got this page that users are sent to after they send money to me with paypal. It takes the $amount that paypal posts, and puts that into a database when the page is loaded. How can I stop users from simply refreshing over and over again to keep putting the money in the database?
This is what I've got doing the dirty work when they get redirected to the page.
This is what I've got doing the dirty work when they get redirected to the page.
Code: Select all
if ($is_banned == 0 && $ID_MEMBER != 0) {
$update_ad_q = "UPDATE ad_credit SET credit = credit + '$amount' WHERE id = $ID_MEMBER";
mysql_query($update_ad_q);
}