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

How can I fetch data from a web server in an android application? -

android - java.net.UnknownHostException(Unable to resolve host “URL”: No address associated with hostname) -

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