After submitting the form, I have 2 $ _POST variables. On the landing page, I want to turn them into $ _SESSION variables and disable $ _POST so that the user does not receive a warning that the browser will send its data again. This is my (not working) code:
if(isset($_POST['clave']) && isset($_POST['email'])){ $_SESSION['id_user']=$_POST['clave']; $_SESSION['email']=$_POST['email']; } if(isset($_SESSION['id_user']) && isset($_SESSION['email'])){ unset($_POST['clave']); unset($_POST['email']);
If I repeat the message, it wonβt show anything, but every time I reboot, I get a browser warning again.
source share