I'm practicing Codeigniter PHP Framework, also I'm very new to it. I have created View (login.php) in view folder of Framework. My issue is that I'm getting the following error:
Parse error: syntax error, unexpected end of file
Please check the code with what is the syntax error into it.
<h2>Login</h2>
<?php if($error==1){ ?>
<p>Your username / password did not match.</p>
<? } ?>
<form action="<?=base_url?>users/login" method="post">
<p>Username: <input type="text" name="username" /></p>
<p>Password: <input type="password" name="password" /></p>
<p><input type="submit" value="Login" /></p>
</form>