Re: Escaping Quotes in a String and Ending With A Quote
| From: | Dr. Shim | Date: | Wed, 20 Mar 2002 02:35:03 +0000 |
| Subject: | Re: Escaping Quotes in a String and Ending With A Quote | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-89260@lists.php.net to get a copy of this message | ||
Hmmm. How about this?
echo "<form name=\"frmMovies\" method=\"post\" action=\"" .
echo $PHP_SELF
. "\">";
"Miguel Cruz" <mnc@stoic.net> wrote in message
news:Pine.LNX.4.44.0203192026500.16870-100000@stoic.net...
On Tue, 19 Mar 2002, Dr. Shim wrote:
> Well, this is a fairly simple problem. I'm having problems with escaping a
> string, and then ending the string right after the escape! For example,
>
> echo "Then Johnathan said, \"That's exactly what I said!\"";
>
> I get a parse error on the line where the string is. Very simple problem,
I
> just can't seem to solve it though. Maybe I'm going crazy =)
There's nothing wrong with that PHP code. Are you sure you really copied
and pasted it directly from the problem code - or that the parse error
isn't somewhere else?
miguel