Re: Re: still having login problems sigh

From: Date: Thu, 25 Mar 2004 08:29:01 +0000
Subject: Re: Re: still having login problems sigh
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-181458@lists.php.net to get a copy of this message
Hello Andy, Thursday, March 25, 2004, 8:21:54 AM, you wrote: >>What happens if you give a the correct ones? AB> doesnt make any difference... will take the display_errors thing and turn it AB> on... AB> do i have to pay any attention to something of this sort: AB> [notice] undefined variable in ....../login.php: $_SESSION[username] is AB> undefined AB> ????but i defined it already and the right way????? im lost now You should be using: $_SESSION['username'] (Note the quote marks) If you fail to include those, PHP will attempt a constant substitution which will error. Try printing out the contents of the super-globals: print_r($_SESSION); print_r($_POST); print_r($_GET); (etc) And see what they contain. -- Best regards, Richard Davey http://www.phpcommunity.org/wiki/296.html

« previous php.general (#181458) next »