Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Back End if stament help Reply To: if stament help

#158269
__
Participant

Use an ifelse statement to decide between two actions based on a condition.

<?php
if( /* user is logged in */ ){
    /*  show user info  */
}
else{
    /*  show login form  */
}

So, how do you know when the user is logged in?