Re: could someone please explain me this code

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
User avatar
social_experiment
DevNet Master
Posts: 2793
Joined: Sun Feb 15, 2009 11:08 am
Location: .za

Re: could someone please explain me this code

Post by social_experiment »

It looks like a registration script. P.s If you want a more verbose explanation, a better line of questioning would be appropriate.
EditHow weird is this, your script is gone. Paste it again.
Last edited by social_experiment on Thu Dec 30, 2010 12:57 am, edited 1 time in total.
“Don’t worry if it doesn’t work right. If everything did, you’d be out of a job.” - Mosher’s Law of Software Engineering
anantha
Forum Commoner
Posts: 59
Joined: Thu Dec 23, 2010 7:38 pm

Re: could someone please explain me this code

Post by anantha »

I am not sure whether the code make sense....but i will explain what i can understand from it...

If the user is logged in and if there is a request to log out...then they are destroying the session...which logs out the user..and redirect to the index.php page..

else

if logged in and has username and authentication is equal to 1....redirect to start.php page

else

if logged in and has username and authentication is equal to null ...then destroy the session...which logs out the user
chandana27
Forum Newbie
Posts: 2
Joined: Thu Dec 30, 2010 10:32 am

Re: could someone please explain me this code

Post by chandana27 »

thank you anantha
Post Reply