0) { $_SESSION['m6'] = "gen_error"; header("location: /"); exit(); } # INSERT RESET DETAILS mysqli_query($conx, "INSERT INTO forgot_password (tstamp,uqid,email_secure,username) VALUES ('$tstamp','$resetid','$email_hashed','$u_username')"); # PUSH OUT EMAIL $to = $new_email; $subject = "misdew.com email update"; $txt = "$u_username,
An email update was requested for your account.
Follow the link below to continue.

https://misdew.com/checkpoint/verify.php?k=$resetid

"; $headers = "Content-Type: text/html; charset=utf-8"; mail($to,$subject,$txt,$headers); $_SESSION['m4'] = "em_ss"; header("location: /checkpoint"); exit(); } else { header("location: /throw_error"); exit(); } } else { header("location: /throw_error"); exit(); } } else { header("location: /throw_error"); exit(); } } ?>