when submit a form then after processing all of your logic just write down below after logic ending: empty all of your form fields for example: $_POST['name'] = $_POST['email'] = $_POST['name'] = "";