Forgot Password Recovery in Login System with PHP and MySQL | VPS and VPN
Web Hosting

26 thoughts on “Forgot Password Recovery in Login System with PHP and MySQL

  1. He worked in localhost. Observed one thing , he is login with john smith but in gmail he got mail with another name. So, When we are working in localhost we can't send any email. If it is in live, we can send email.

  2. The code gives following error…. please give me solution for this
    <?php
    if(isset($_POST['forgotSubmit'])){
    //check whether email is empty
    if(!empty($_POST['email'])){
    //check whether user exists in the database
    $prevCon['where'] = array('email'=>$_POST['email']);
    $prevCon['return_type'] = 'count';
    $prevUser = $user->getRows($prevCon);

    error:

    Notice: Undefined variable: user in C:xampphtdocsemail_testuserAccount.php on line 8

    Fatal error: Call to a member function getRows() on null in C:xampphtdocsemail_testuserAccount.php on line 8

Leave a Reply

Your email address will not be published. Required fields are marked *