i would want to know if is it possible to clear the form data through php.
i want to restrict the user from resubmitting the form even if the user click back button in the browser.
thank you..
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You want a “nonce”, a unique value that is generated when the form is requested, then checked and invalidated when the form is submitted so that it can not be resubmitted.
There is already a question which discusses the FullThrottle nonce library for PHP, and another question about preventing the double-insert that typically happens when forms are submitted twice.
You should also be submitting the form via POST, and then redirecting the browser so that it requests the results via GET.