Wrox Programmer Forums

Need to download code?

View our list of code downloads.

| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
 
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old September 8th, 2005, 10:04 AM
Registered User
 
Join Date: Sep 2005
Location: , , .
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.
  #2 (permalink)  
Old September 8th, 2005, 10:30 AM
Registered User
 
Join Date: Sep 2005
Location: , , .
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.

  #3 (permalink)  
Old October 4th, 2006, 03:06 AM
Registered User
 
Join Date: Oct 2006
Location: , , .
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

 


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 05:08 PM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.