Like the title asks, how do you prevent form resubmitting? Say if you had a form that called on a function to increment a variable after it is submitted. What happens if the user refreshes the form or presses the back button? The form will be resubmitted and the variable is incremented again unintentionally. Is there anyway to prevent this? This is in PHP btw.