I have a webpage that shows a login panel, and a button which enables the user to register themselves to the site.
Once they have registered, it takes them into the site, but the button is still showing as register, I want it to change to My account, which enables the user to edit their profile, and another button to let them logout. This is what I have so far:
<?php
if ($_SESSION['client_id']){
echo'<a class="button-top" href="index.php?action=member_edit">My Account</a>'
echo'<a class="button-top" href="index.php?action=logout_ok">Logout</a>'
}else{
echo'<a class="button-top" href="index.php?action=member_add">Register</a>'
}
?>
But it is completely and totally wrong.
if statement!