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

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to