[Resolved]Parse error on assignment statement

I’m basically reusing code that I had working on another site that I worked on, with almost no changes to the code at all. What’s happening is that I’m using an HTML form to send data to this page and then do a database lookup. When trying to run the page, I get the following error:

“Parse error: parse error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /home/www/XXXXXXXXXXX/login.php on line 13”

Line 13 is as follows:

$pnameent = $_POST['toon'];

Another oddity that I noticed is that the line:

echo "<html><body>";

or

echo "<p style='color:white'> Insert boring text here.</p>";

also return a parser error, specifically complaining about an unexpected ‘>’.
Any help would be appreciated.

need to see more of the code…

There error might be on a line other than 13, however, it’s tough to tell at this point.

There may be an open quote somewhere causing the problem leading to some of your “Oddities”

Yeah, I’m a n00b. In the course of preparing a reply, I happened across a mismatched " a few lines prior to the listed one that caused all of the problems. Thanks for the assist.

Glad I could I could help (Sort of… )

:)
Sponsor our Newsletter | Privacy Policy | Terms of Service