Hi,
I'm not sure if this is the right place to post this message, but anyway, I need help with my login.
I have an header with a sign in button at the top right, and when the user clicks on the the button it directs them to the login page. When they insert their specific password and submit the form, they're taken back to the homepage.
What I'm trying to do is when they've logged on, I don't want anything but the sign in button in the header.php to change and I want to replace it with a sign out button.
This is a sample of what I currently have in my header.php. (I've put 'Hello' where the sign out button should be) (I haven't made the button yet).
Code:<?php
require_once 'classes/membership.php';
?>
<div id="header">
<div class="header-left">
BANNER GOES HERE
</div>
<div class="header-right">
<div id="signin">
<?php
if(isset($_SESSION['pwd']) != '') {
print '<h1>Hello</h1>';
} else {
print '<a href="login.php"><img src="images/signin_button.jpg" border="0"></a>';
}
?>
</div>
</div>
</div>

