On 06.Aug.2001 -- 10:23 AM, Sébastien Lefebvre wrote:
> Hi all,
>
> I have a form where I can type text.
> The form is submited with post method to a xsp page.
> This texte can of course have quotes in it. ex: I'd like this to work
> How to insert it in MySQL ?
> Do I have to write XSP logic in order to replace ' by \' ?
> Or is there any other solution ?
> (I'd like to make the operation server side so javascript's regexp is
> not an issue for me).
I *think* a prepared statement doesn't care about a string's
content. Use <esql:parameter> in a query to get code that uses
a prepared statement.
Chris.
--
C h r i s t i a n H a u l
[EMAIL PROTECTED]
fingerprint: 99B0 1D9D 7919 644A 4837 7D73 FEF9 6856 335A 9E08
---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>