p2p.wrox.com Forums

Need to download code?

View our list of code downloads.


  Return to Index  

pro_php thread: Escaping within Escaped?


Message #1 by Jefferis Peterson <jefferis@p...> on Thu, 22 Feb 2001 13:44:02 -0500
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


  Return to Index