title: Forgot password URL token for PHP MySQL
body: <p>I am new to PHP and so far created a login, register and a forgot password where currently the user is sent their password from the MySQL table. I have now encrypted the password using sha1 . I am currently writing code so:</p>
  
  <p>When the user clicks on forget password link they enter username and email address (validated).</p>
  
  <p>I am currently finding it difficult to then send them a url link in the sent email to direct them to a page to reset. </p>
  
  <p>Any help would be much appreciated (code snippets, tutorials, links to methods ect.)</p>
  
  <p>Ta</p>