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">&nbsp;</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

Popular posts from this blog

jquery - How can I dynamically add a browser tab? -

node.js - Getting the socket id,user id pair of a logged in user(s) -

keyboard - C++ GetAsyncKeyState alternative -