I am getting this error:
Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in /home/sfayc/public_html/Form/updatedb.php on line 22
The code:
Code: Select all
$Insert="INSERT INTO formdata(FirstName, LastName, Email, Status, Date, Source)
VALUES
('".$_POST['FirstName']."','".$_POST['LastName']."','".$_POST['Email']'.",'".$_POST['Status']."',Now(),'".$_POST['Source']."')"; // this is line 22
if (isset($POST['Status'] || $Status<>'Other'){
$Status=$POST['Status'];
}
else {
$Status='Other';
Code: Select all
<input type=radio name='Status' value='Teacher' />Teacher<br>
<input type=radio name='Status' value='Teacher_Aide'>Teacher Aide<br>
<input type=radio name='Status' value='Administrator'>Administrator<br>
<input type=radio name='Status' value='Parent'>Parent<br>
<input type=radio name='Status' value='Student'>Student<br>
<input type=radio name='Status' value='Other'>Other Other <input type=text name='Other' value='Other'>
Many thanks.