-1

我已经搜索并找不到关于 T_PRINT 语法错误的任何内容。所以就这样吧,我不明白这是“意外”。它指的是打印“您的员工申请已发布”等行。

<?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;
?>
4

1 回答 1

1

您的某些代码行似乎有一些不应该存在的有趣的尾随字符;这是它们的十六进制表示:

0xc2 0xa0

我被告知这是一个不间断的空间。从代码中清除这些字符应该可以解决问题。

于 2012-12-29T10:58:11.060 回答