The code is this:
<div class="panel-body">
<?php
$login_form = <<<EOD
<form role="form" name="login" id="login" method="POST" action="check_login.php">
<div class="form-group">
<label for="exampleInputEmail1">Usuario:</label>
<input type="text" class="form-control" name="username" id="username">
</div>
<div class="form-group">
<label for="exampleInputPassword1">Contraseña:</label>
<input type="password" class="form-control" name="password" id="password">
</div>
<button type="submit" class="btn btn-info">Ingresar</button>
</form>
EOD;
$msg = $_GET['msg']; //GET the message
if($msg!='') echo '<p>'.$msg.'</p>'; //If message is set echo it
echo "<h1>Please enter your Login Information</h1>";
echo $login_form;
?>
</div>
The error that returns to me is:
Parse error: syntax error, unexpected '' (
T_ENCAPSED_AND_WHITESPACE
), expecting identifier (T_STRING
) or variable (T_VARIABLE
) or number (T_NUM_STRING
) on line 91
Line 91 is:
$msg = $_GET['msg']; //GET the message
I was reading that the EOD;
final% does not have to have spaces and it does not have it.