Guys,
I am trying to get this password reset functionality wor for me but I am not successful at all. Please somebody help me. I get "Your password could not be reset - please try again later" so I think the get_random_word function is not working right. Here are the scripts:

This is the script after the user enters his/her userid.

<?php
require_once("b ookmark_fns.php ");
...