Hi,
I refer to the mentioned abook by Luke Willing, ISBN: 0672317842
I was trying to work on Chapter 24 about sessions authentication and cookies, I couldn't get the code work. I wonder if anyone face the similar problems?
- The email I entered, it says invalid. (data_valid_fns.php)
// check an email address is possibly valid
if (eregi("[a-zA-Z0-9_.-]+@[a-zA-Z0-9-]+.[a-zA-Z0-9-.]+$", $address))
Unless I changed to if (!eregi(.....)
The same goes to the password verification check.
if (strlen($passwd)< 6 || strlen($passwd) >16)
{
do_html_header("Problem:");
echo "Your password must be between 6 and 16 characters."
."Please go back and try again.";
After I finished registered and see the page confirm registration sucessful. I noticed there is a blank record in user table in "bookmarks" database in mysql.
I have turned on magic quotes for all the testing but still failed.
Thank you in advance for any help.