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>'; } } ?>