Writing html in php -
hi want write html in php this
but getting error. have seen manay example problem unsolved.
parse error: syntax error, unexpected '}' in /home/a2277283/public_html/pages/home.php on line 12
my code
<?php if (!isset($_session['email'])) {?> <h4>login</h4> <form action="scripts/login.php" method="post"id="login_form"> <strong>email:</strong><input type="text" name="user_email"/> <input type="submit" value="login" name="submit"/> </form> <?php}?>
this works :
<?php if(!isset($_session['email'])){ ?> <h4>login</h4> <form action="scripts/login.php" method="post"id="login_form"> <strong>email:</strong><input type="text" name="user_email"/> <input type="submit" value="login" name="submit"/> </form> <?php } ?>
space after <?php
Comments
Post a Comment