0
if ($_SERVER["REQUEST_METHOD"] == "POST" && $_POST['Submit']) 

I'm trying to avoid the double data submission on the form when the page refreshed/reload it submitted the same row in my database.

I searched a lot and find many solutions like using GET instead of POST, but it doesn't work for me.

I used server side validation(wrote all validation code under above written code) in this form & submission take place on the same page.

please get me out of this error. Thank You!

0 Answers0