I have searched and can not find anything on T_PRINT syntax errors. So here it goes, I don’t see how this is “unexpected”. It is referring to the print “Your Staff Application has been posted” etc. line.
<?php
session_start();
include "globals.php";
if($_POST['app'])
{
$db->query("INSERT INTO staffapps VALUES('',$userid,'{$_POST['pos']}','{$_POST['app']}')", $c)
or die
("Your staff application could not be processed. Make sure you have filled out the form completely!");
print "Your Staff Application has been posted for our staff to review, your results will be decided within 14 days! Good Luck!";
}
else
print "<h3>Staff Application</h3>
<center><h8><b>Please read the <a href='stafftoc.php'><font color='yellow'>Terms & Conditions</font></a>before sending an application!</b>
<form action='staffapps.php' method='post'>
Position <select name='pos'><option value='3'>Admin</option><option value='5'>Secretary</option><option value='6'>Assistant</option></select>
Why do you deserve the position?
Please bare in mind that staff look for professional members so be sure to spell correctly with the right grammar and punctuation!
If your staff application appears un-professional, it will be dismissed!
<textarea rows='7' cols='40' name='app'>{$_GET['app']}</textarea>
<input type='submit' value='Submit Application' /></form>";
$h->endpage;
?>
Some of your code lines seem to have some funny trailing characters that shouldn’t be there; here’s a hexadecimal representation of them:
I’ve been told that this is a non-breaking space. Clearing those characters from your code should fix the issue.