in reply to Re: escaping the backslash
in thread escaping the backslash

Jenda, chromatic;
Thanks for the advice. I can see in Jenda's explanation why the substitution wasn't working. I took a crack at the quote() method, but it turns out the text being dumped on the form has newlines, which is another bag of worms for quote(). ;-)
Since it's time to go home, I'll take a shot with the placeholders tomorrow. Thanks for the great assistance.
joedoc

Replies are listed 'Best First'.
Re: Re: Re: escaping the backslash
by reds (Novice) on Apr 29, 2003 at 21:46 UTC
    Your newline problem is probably related to the output record separator. You can just assign to it to change the default behaviour.

    $, - output field separator (default: comma)
    $\ - output record separator (default: newline)
    $" - list separator (default: space)
      All:
      I used the binding parameters feature of DBI as suggested, and that solution works the best. The problem with other solutions was the nature of the data. These are specially-prepared Naval messages that require that the formatting (lines, etc) be exactly as created. The editors they use for these things can also vary as to how they add CRs and LFs, so my goal was to just have them paste the raw copied text to the web form and have the script dump it to the database as-is. Binding worked perfectly.
      Thanks for all the great tips and advice. I am very grateful.