HI guys I am getting this error can you please help
/************************
Parse error: parse error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in c:\program files\apache group\apache\htdocs\getdata.php on line 12
/***********************************/
here is the code
first the html code which leads on the php form
<form method="POST" action="getdata.php">
Enter User Number: <input type="text" name="num"><br>
<input type="submit">
</form>
<input type="hidden" name="id" value="$_POST['num']">
<?php
if(!isset($_POST['num']))
{
echo "Incorrect usage of script.";
exit();
}
$query = "SELECT * FROM students WHERE student_id = $_POST['num']";
$res = mysql_query($query);
if(!mysql_num_rows($res)) {
echo "User ID Not Found.";
} else {
$data = mysql_fetch_row($result);
echo <<<END
User Info for {$data[0]}<br>
<form method="POST" action="whatever.php">
<input type="text" name="firs_tname" value="{$data[1]}"><br>
<input type="text" name="last_name" value="{$data[2]}"><br>
<input type="text" name="faulty_id" value="{$data[3]}"><br>
<input type="text" name="course_id" value="{$data[4]}"><br>
<input type="text" name="current_level" value="{$data[5]}"><br>
<input type="text" name="Date_started" value="{$data[6]}"><br>
<input type="text" name="Group_id" value="{$data[7]}"><br>
<input type="submit">
</form>
END;
?>