$SESSION var not recognized in function

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
FluxNYC
Forum Newbie
Posts: 6
Joined: Sun Mar 25, 2007 6:43 pm

$SESSION var not recognized in function

Post by FluxNYC »

I have a function called start_test()

to start it checks a session variable but i get this error

Notice: Undefined index: page in /var/www/html/fordham/includes/test_functions.inc.php on line 6

any ideas?

Thanks.
User avatar
John Cartwright
Site Admin
Posts: 11470
Joined: Tue Dec 23, 2003 2:10 am
Location: Toronto
Contact:

Post by John Cartwright »

$_SESSION not $SESSION
User avatar
superdezign
DevNet Master
Posts: 4135
Joined: Sat Jan 20, 2007 11:06 pm

Post by superdezign »

:-p

And if that's not the problem, maybe try isset() before attempting to use/manipulate data.
Post Reply