hello guys am stuck with this error called unexpected T_ECHO what could be the cause?
the error is pointing to echo <<<_EOD of this code:
if (!isset($_POST['submit'])
echo <<<_EOD
<!Doctype html public "-//w3c//dtd xhtml 1.0 transitional//EN"
"http://www.w3.org/tr/Xhtml1/dtd/transitional.dtd">
<html>
<head><title> Form Test using php to access Mysql </title></head>
<style type ="text/css">
<!--
.table1 { border: 1px ; solid #999999 ; font: normal 14px helvetica; color: #444444;}
.h1 { font-family: arial ; decoration: underline }
-->
</style>
<body bgcolor="ffffcc">
<form method ="post" Action =" form_4_input.php">
<table class ="table1" cellpadding ="2" cellspacing ="5" width ="100%" >
<tr>
<td>
<table width="50%">
<tr>
<th colspan="2" align="center"><span class ="h1"></span>Personal Details Form</span> </th>
</tr>
<tr>
<td ><label for ="title"> Title</label></td>
<td><select id="title"name="title" size ="1" width="10">
<option> Mr </option>
<option> Mrs </option>
<option> Dr </option>
<option> Miss </option>
<option> Master </option>
</select>
</td><td span="4" align ="center"><?php echo "$fail"; ?></td>
</tr>
<tr>
<td><label for="firstname"> First Name</label></td>
<td><input type ="text" id ="firstname" name ="frmFirst" size = "20" maxlength="20" /> </td>
</tr>
<tr>
<td><label for="lastname"> Last Name</label></td>
<td><input type ="text" id ="lastname" name ="frmLast" size ="20" maxlength ="20" /></td>
</tr>
<tr><td><label for="sex"> Sex</label></td>
<td><select name="frmSex" size ="1" id="sex" >
<option> Male</option>
<option>Female</option>
</select></td>
</tr>
<tr><td><label for="email">Email Address</label></td>
<td><input type ="text" id ="email" name ="frmEmail" /></td>
</tr>
<tr><td><label for="occupation"> Occupation </label></td>
<td><select id ="occupation" name ="frmOccupation" size="1" />
<option>Student</option>
<option>Doctor</option>
<option>Lawyer</option>
<option>Teacher</option>
<option>IT</option>
<option>Nurse</option>
<option>Accountant</option>
</select>
</td>
<tr >
<td><input type ="submit" name="frmSubmit" value ="Submit" /></td>
<td> <input type ="reset" name ="frmReset" value ="Clear" />
</td>
</tr>
</table>
</td>
<td>
</tr>
</table>
</form>
</body>
</html>
_EOD;
else echo('something is wrong');
?>