display On/Off

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
bobby9101
Forum Commoner
Posts: 28
Joined: Thu Apr 27, 2006 1:18 pm

display On/Off

Post by bobby9101 »

I ahve a login and logout script.
I would like it so that when someone logs in it defines a variable $on
and when they sign out it goes to $off
how can i do this?
User avatar
John Cartwright
Site Admin
Posts: 11470
Joined: Tue Dec 23, 2003 2:10 am
Location: Toronto
Contact:

Post by John Cartwright »

what have you done so far?
bobby9101
Forum Commoner
Posts: 28
Joined: Thu Apr 27, 2006 1:18 pm

Post by bobby9101 »

nothing really :oops:
i dont really know where to start :roll:
OK lemme give you some info
I have
in.php for loggin in
and out.php for logging out
and i know that i need to put something in the in.php so that when a user is verified as logging in it switches the status to on
and then i know i need something in out.php to switch the status back.
i just dont really know what.
i was trying to think it out with my limited php knowledge but my brain is fried
Post Reply