Re: Parse error: syntax error, unexpected '>'
| From: | Ashley Sheridan | Date: | Wed, 23 Sep 2009 14:25:22 +0000 |
| Subject: | Re: Parse error: syntax error, unexpected '>' | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-298281@lists.php.net to get a copy of this message | ||
On Wed, 2009-09-23 at 07:18 -0700, Haig Davis wrote:
> echo " <li>".$row['melID']."<input type="checkbox"
> name="\".$row['melID].\""/input> ";
You're escaping in the wrong places. The \ escapes the character
following it, so what you are doing here, in line 2, is breaking out of
the string with a regular " and then printing a " (escaped \") Also, I
think you need to brush up on your HTML a bit, as
<input type="checkbox" name="name"/input>
is not valid HTML.
Thanks,
Ash
http://www.ashleysheridan.co.uk