View Full Version : PHP Unexpected T_STRING?

03-10-2007, 12:49 AM
I cannot figure out why I recieve the Parse error: syntax error, unexpected T_STRING in /home/c361861/public_html/profileform/profileform.php on line 197 error when loading this page. I've checked several times, and can't find an unended ' or " anywhere in the script. If anyone can help, I would really appriciate it. (There is more to the code, but I am positive that the problem lies here, and the rest of the code is irrelevant.) Line 197 is the bolded line. This is the line that the error points to.

// Handle POST method.
if ($_POST)
$alias = $_POST['alias'] ;
$email = $_POST['email'] ;
$xfire = $_POST['xfire'] ;
$aim = $_POST['aim'] ;
$age = $_POST['age'] ;
$occupation = $_POST['occupation'] ;
$location = $_POST['location'] ;
$song = $_POST['song'] ;
$siglink = $_POST['siglink'] ;
// Message to be recieved via email provided below:
$message = '
Clan Leader - '.$alias.'
<hr width=100% color=black><BR><BR>
<font color=white>
Alias: '.$alias.'<BR>
E-mail: <a href="mailto:"'.$email.'">'.$email.'</a><BR>
AIM: <a href="aim:goim?screenname='.$aim.'&message=Hello">'.$aim.'</a><BR>
Age: '.$age.'<BR>
Location: '.$location.'<BR>
Occupation: '.$occupation.'<BR>
Song: '.$song.'<BR>
<a href=http://profile.xfire.com/'.$xfire.'><img src=http://miniprofile.xfire.com/bg/sf/type/0/'.$xfire.'.png border="0"></a><BR>
<img src="'.$siglink.'" border=0><BR>

// Form Reciever e-mail
mail("aohxrecon@gmail.com", "Profile Info", $message) ;
// Thank the generous user
echo "<font color=white>Thanks for submitting your profile information.</font>";

03-10-2007, 12:53 AM
Put a colon after the previous text line:

</center>'; // <--