;;;Sometimes, the insert statement doesn't get executed
What exactly are the behaviours, error??
;;;I wonder if it has something to do with weird characters
If you are not handling wierd charcters, then yes probably. Trial and error will tell you, have you tryed this?
Try this function on insert:
Function StoreText(theText)
StoreText = ""
on error resume next
StoreText = CStr(theText)
if (len(StoreText) > 0) Then
StoreText = Replace(StoreText, """", """, 1, -1, 1)
StoreText = Replace(StoreText, "'", "''", 1, -1, 1)
StoreText = Replace(StoreText, vbCrLf, "<BR>", 1, -1, 1)
end if
End Function
Use it like so:
storeText(trim(request.form("yourFieldName")))
Wind is your friend
Matt
|