(This is classic ASP) I'm sure this is just a case of escaping the text, but I haven't found anything yet. I have a textarea that may contain all sorts of characters and I need to UPDATE the record with whatever is in that textarea, but I'm getting an error that breaks my SQL query, which I'm positive is related to the content of the textarea.
So I have this so far as my SQL query:
"UPDATE document SET displayheading='" & _
stripillegal(request("txt_displayheading")) & _
"', displayorder=" & displayorder & _
", shortdescription='" & stripillegal(request("txt_shortdescription")) & _
"', document_note='" & request("document_note") ...blah blah blah
So I'm wondering how do I contain the textarea so that I can update the record without ruining the query?