Search the Community
Showing results for tags 'login.php'.
Hello i am new to this forum, with reference to Mr. Larry's book " PHP 6 AND MYSQL FOR DYNAMIC WEBSITES VISUAL QUICKPRO GUIDE" low price edition. Please, i have been trying to login a user for the pass two days but i am not getting it right because i can't access the login page without activating the account which is done by clicking the the link in the email. So the problem is i don't receive the email after configuring the sendmail.ini and the php.in for the email, therefore i am stuck and i can't proceed. i even downloaded thunderbird for sending and receiving the emails and also configured the mercury and added new users through on the control panel admin->configuration->manage users->Add... I even tried creating the simple login page that will not require the user to activate his account through the link using the example in chapter 11. But still couldn't get it right. Please i will really like to have help from this forum, Thank you.
Hi, I'm following the cms example (Chapter 9) in the book. On a pc with xampp with windows 7 operating system and I can't figure out why when I load try to get Quickform2 to load on my login.php page I get this error message: Warning:require(classes/PEAR_Error.php): failed to open stream: No such file or directory in C:\xampp\htdocs\site1\includes\utilities.php on line 5 Fatal error: require(): Failed opening required 'classes/PEAR_Error.php' *include_path='.;C:\xampp\php\PEAR;/usr/local/pear/share.pear') in C:\xampp\htdocs\site1\includes\utilities.php on line 5 I may be mistaken but I think that the filepath is incorrect for the php.ini set and that when my utilities.php autoload function searches for the pear classes to load it can't find any. Please help. Thanks, je456
The login.php script and add_page.php script, in Chapter 9, both begin by creating a new instance of quickform2 as $form. Then the script tests for "POST" in order to process the $form data ELSE display a blank $form for user input. How does the login.php script run twice without creating an empty $form object each time it runs? In other words, when a $form "submit" occurs; how does the $form object RETURN to the "if($_SERVER['REQUEST_METHOD] == 'POST" section of the login.php script, thereby, bypassing the beginning of the script. The beginning of the script would use the variable $form to create a new instance of quickform2 which would seem to me to over write the form data being submitted? Thank you, I am excited to learn from your books. Sincerely, Ed