Using the user-password-reset.php template page the <?php echo htmlencode( $GLOBALS['user']['username'] ); ?> don't showing the desired username when i post valid userNum & ReserCode to it. The username field remain blank.
How the $GLOBALS['user']['username'] getting the variable?
It's this line of the code that gets the user from the database:
$user = mysql_get(accountsTable(), @$_REQUEST['userNum']);
Maybe try replace $GLOBALS['user']['username'] with $user['username'] and see if it's giving you the correct username?
Let me know if it works.
Leo - PHP Programmer (in training)
Thanks for your reply. I did the same as you suggested ans worked of course.
PS: I never got notification email on your reply from the forum.
Glad to hear it's working!
>PS: I never got notification email on your reply from the forum.
It shows as being sent in the outgoing email log on our end. Maybe check your spam folder?
Dave Edis - Senior Developer