You could always use something like
my $var = addSlashes(""$interpolate" me 'bar' 3' "foo""); // adds slashes
in front of all quotes so they are ignored
or
my $var = htmlspecialchars(""$interpolate" me 'bar' 3' "foo""); // converts
quotes and other special chars to its equivalent HTML represetation. Eg.
"e.
Brent Palmer.
"John Bokma" <postmaster@castleamber.com> wrote in message
news:Xns9616D3F033BFFcastleamber@130.133.1.4...[color=blue]
> Michael Fesser wrote:
>[color=green]
>> .oO(John Bokma)
>>[color=darkred]
>>>And a tip:
>>>
>>>echo <<<LOGOUT;
>>><a href="$PHP_SELF?action=log_out"><img border="0" src=""
>>> width="74" height="74"><p style="text-align: center"></p></a>
>>>LOGOUT[/color]
>>
>> It should still be $_SERVER['PHP_SELF']. And the HTML is invalid (no
>> paragraphs allowed inside an anchor element).[/color]
>
> My HTML parser was in a good mood, and I assumed (read ignored): $PHP_SELF
> set to $_SERVER[ 'PHP_SELF' ]
>
> Anyway, I am often amazed on the use of backslashes outside languages as
> Perl. Doesn't PHP have a qq() (which is "" but allows "" inside without
> escaping them, e.g. my $var = qq("$interpolate" me 'bar' 3' "foo");
>
> --
> John MexIT:
http://johnbokma.com/mexit/
> personal page:
http://johnbokma.com/
> Experienced programmer available:
http://castleamber.com/
> Happy Customers:
http://castleamber.com/testimonials.html[/color]