Hi Andrew,
I am also using the code to email a validation link.
I inserted the code into register.php.
It is working for me.
On page 15 of the book, I inserted the
code after line 11,
PHP Code:
$token = $user->setInactive();
and before these lines which start on line 18
PHP Code:
}
}
// there was invalid data
else
{
Upon success, it should go to public_files/register.php
and produce a page that looks something like this.
Thank you for registering.
You will be receiving an email shortly with instructions on activating your account.
Copyright ©2010