Wrox Programmer Forums
|
BOOK: Professional CodeIgniter ISBN: 978-0-470-28245-8
This is the forum to discuss the Wrox book Professional CodeIgniter by Thomas Myer; ISBN: 9780470282458
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Professional CodeIgniter ISBN: 978-0-470-28245-8 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 October 12th, 2010, 04:10 AM
Registered User
 
Join Date: Oct 2010
Posts: 2
Thanks: 1
Thanked 0 Times in 0 Posts
Default Please help me : Login error unsolve

I got error when try the code until page 158:

A PHP Error was encountered

Severity: Notice

Message: Undefined index: userid

Filename: controllers/welcome.php

Line Number: 121


I try everything from this thread forum but it doesn't help me.

What must i check ?

What is the user n the passwor in dashboard, user : admin, pass : kids, i that correct ? I still cann't go to dashboard page.

Your helpful is really appreciate.
 
Old October 12th, 2010, 04:39 AM
Registered User
 
Join Date: Oct 2010
Posts: 2
Thanks: 0
Thanked 1 Time in 1 Post
Default

Try this in welcome/verify
Code:
 function verify(){
  if ($this-> input-> post('username')){
    $u = $this-> input-> post('username');
    $pw = $this-> input-> post('password');
    $this-> madmins-> verifyUser($u,$pw);
    if (isset($_SESSION['userid']) AND $_SESSION['userid']  >  0){
      redirect('admin/dashboard','refresh');
    }
  }
  else{
...}
The Following User Says Thank You to icsab For This Useful Post:
ariari (October 12th, 2010)
 
Old October 12th, 2010, 04:56 AM
Registered User
 
Join Date: Oct 2010
Posts: 2
Thanks: 1
Thanked 0 Times in 0 Posts
Default

@icsab : Thx u very much, it's really helpfull,

i got a lot of error before and when i read this forum, i think in the next page i got a lot of error too

i got error when login is not correct, there is no message that the password is not correct, i try to add something and finally it's solve.

i am sorry if myenglish is so bad.
 
Old October 12th, 2010, 05:00 AM
Registered User
 
Join Date: Oct 2010
Posts: 2
Thanks: 0
Thanked 1 Time in 1 Post
Default

You're welcome!





Similar Threads
Thread Thread Starter Forum Replies Last Post
LogIn Error asters VB.NET 2002/2003 Basics 4 February 15th, 2008 03:56 AM
Login Error lem ASP.NET 2.0 Basics 1 November 16th, 2007 09:28 AM
Login error: session_start() gamber Beginning PHP 2 April 27th, 2006 10:25 AM
Error while creating login page manash.2005 BOOK: ASP.NET Website Programming Problem-Design-Solution 1 January 28th, 2006 07:53 AM
Login Page Parser Error? jim.sullivan@telus.net Classic ASP Databases 3 July 27th, 2004 02:15 PM





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