I am getting parsing error in following code. Can I write this code in some more comprised form or in better way?
<?php if( (!isset($_SESSION["userkey"])) || (!isset($_SESSION["username"])) || (!isset($_SESSION["userauthorisation"])) )
{ ?>
<div id="loginbox" >
<form id="loginform" name="loginform" style="margin:0px; background:#000;">
XYZ FORM
</form>
</div>
<? } ?>
IF I use <?php ?> though problem is solved. But can I modify my server information such it won’t give me error on short tag i.e <? ?>. I am usign XAMPP server.
what error do you get?
maybe you should use the full php tag in the last line: