How could i add a "Forgott My Password" buton, i know how i would send emails via php but how would i get the users password,username,email. As i would like to have it when you press forgott by password it asks for the username and sends it there password to the users email
i would have a phpscript something like this:
PHP Code:
<?php
$username = $_POST['user'];
$password = "HOW DO I GET USERS PASS";
$email = "HOW DO I GET USERS EMAIL";
$message = "Hello, \n You have requested your password: 2\n Your Password is: ".$password;
mail($email, 'Forgotten Password', $message);
?>
Recent comments
4 hours 25 min ago
13 hours 52 min ago
14 hours 42 min ago
18 hours 15 min ago
22 hours 39 min ago
23 hours 1 min ago
1 day 1 hour ago
1 day 11 hours ago
1 day 16 hours ago
1 day 17 hours ago