I have a simple form that submits text to my SQL table. The problem is that after the user submits the text, they can refresh the page and the data gets submitted again with
if (($_SERVER['REQUEST_METHOD'] == 'POST') and (isset($_SESSION['uniq']))){ if($everything_fine){ unset($_SESSION['uniq']); } } else{ $_SESSION['uniq'] = uniqid(); }