diff --git a/forgot.php b/forgot.php new file mode 100644 index 0000000..a4f1858 --- /dev/null +++ b/forgot.php @@ -0,0 +1,43 @@ +prepare("SELECT * FROM users WHERE email = :email"); + $result = $statement->execute(array('email' => $email)); + $user = $statement->fetch(); + + if ($user !== true ) { + die('successfull. check your inbox.'); + } else { + $errorMessage = "somethings wrong (maybe wrong email?)
"; + } + +} +?> + + + + Forgot Password + + + + + +
+Your E-Mail Adress:
+

+ + + + +
+i know my password again! + +