Form still shows despite PHP condition with session -
<?php if(!isset($_session['login'])) { ?> <div id="login"> <form method="post" action="login.php"> username: <input type="text" name="nm" /> <br /> password: <input type="password" name="pass" /> <br /> <input type="submit" name="go" value="login" /> </form> </div> <?php } else echo 'hi'; ?>
even though session set (value test) shows form instead of 'hi'.
Comments
Post a Comment