html - PHP conditionals showing both results -
i have following on php page not want work correctly. not sure if i'm not doing conditional correctly or not? appears show both sets of content irrespective if 1st condition true or not, ideas?
<? if(!isset($_session['exhibitor_logged_in']) || $_session['exhibitor_logged_in'] != true): ?> <p>please log in password.</p> <form name="exhibitor_login" method="post" action=""> <div> <label for="password">password:</label> <input type="password" name="password" /> </div> <div> <label for="submit"> </label> <input type="submit" name="submit" value="log in" /> </div> </form> <? else: ?> <p>logged in</p> <? endif; ?>
change of <?
<?php
php isn't being parsed. can confirm viewing source on web page.
Comments
Post a Comment