Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Mar 2007
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    PHP Unexpected T_STRING?

    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.

    Code:
        <?php
            // 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>
    <center>
    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>
    </center>'
    
                // 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>";
            }

  • #2
    Super Moderator Inigoesdr's Avatar
    Join Date
    Mar 2007
    Location
    Florida, USA
    Posts
    3,647
    Thanks
    2
    Thanked 406 Times in 398 Posts
    Put a colon after the previous text line:
    PHP Code:
    </center>; // <-- 


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •