You are correct. I mistyped. :) I was rushing.
Adam Lang
Systems Engineer
Rutgers Casualty Insurance Company
http://www.rutgersinsurance.com
----- Original Message -----
From: "Christopher Scollo" <scollo@t...>
To: "professional php" <pro_php@p...>
Sent: Thursday, February 22, 2001 4:03 PM
Subject: [pro_php] Re: Escaping within Escaped?
> Hi,
>
> I have to confess that I haven't been following this thread at all, but I
> just wanted to point out that that code wouldn't work:
>
> > $str = "<form>\n";
> > $str = $str . "<input type="hidden" value="3">\n";
> > $str = $str . "</form>\n";
> > printf ($str);
>
> Those quotes definitely need to be escaped:
>
> $str
> "<form>\n" .
> "<input type=\"hidden\" value=\"3\" />\n" .
> "</form>\n"
> ;
> printf ($str);
>
> -- Christopher