include\ForgotPassword
<?php if (isset($_POST['step1'])) { $name=$_POST["Username"]; $query = "SELECT * FROM accounts WHERE Username = '$name'"; $result = mysqli_query($conn,$query) or die(mysqli_error()); if(mysqli_num_rows($result) != 0) { header("Location: ForgotPassword&step2&user=$name"); }else{ $Not_find= '<div class="se-alert error">Account not found </div>'; } } ?>