Wrox Programmer Forums
|
BOOK: Professional PHP 5 ISBN: 978-0-7645-7282-1
This is the forum to discuss the Wrox book Professional PHP5 by Ed Lecky-Thompson, Heow Eide-Goodman, Steven D. Nowicki, Alec Cove; ISBN: 9780764572821
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Professional PHP 5 ISBN: 978-0-7645-7282-1 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old September 8th, 2005, 10:04 AM
Registered User
 
Join Date: Sep 2005
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default Correct code

When I try to execute auth_user.php, code of Chapter 11, after click on Login button, I can see the same page with the blank field.
 
Old September 8th, 2005, 10:30 AM
Registered User
 
Join Date: Sep 2005
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

This topic is valid for Chapter 11 of PHP5 GUIDA PER LO SVILUPPATORE,language italian, but the code is the same. Please help me to resolve this topic.

 
Old October 4th, 2006, 03:06 AM
Registered User
 
Join Date: Oct 2006
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

This is a relatively old post, but I just recently started to use this book and found the same errors listed here. Is there anyone out there who can help?

I suspect part of the problem is in the Code:


if(!isset($userid)) {
   login_form();
   exit;



I think the $userid should be $_POST['userid']


Also there is a problem in the SQL statement for:

$query = "SELECT username FROM $user_tablename
                             WHERE userid = '$userid'
                             AND userpassword = password('$userpassword')";


This SQL statement is not even valid by itself.

Does anyone have any tips? Thanks






Similar Threads
Thread Thread Starter Forum Replies Last Post
finding the correct rows mrame XSLT 0 July 23rd, 2008 05:57 PM
Is it correct like this ? tunisiano C# 1 March 7th, 2007 12:22 PM
pageload is not correct... pc_35 ASP.NET 1.0 and 1.1 Basics 5 September 26th, 2006 09:20 AM
Is this code correct for a Dataview rayncarnation ASP.NET 1.0 and 1.1 Basics 0 November 7th, 2005 05:55 PM
correct syntax? crmpicco Classic ASP Basics 2 February 10th, 2005 05:32 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.