classic asp request an input with single quote

kukaljcanin

New Member
I am trying to read a text area (id= Message) and save it into the database. The problem is that if the user enters a single quote (') in the text, both the codes below fail to handle it.\[code\]Request("Message")\[/code\]or \[code\]Replace(Request("Message"),"'","")\[/code\]both fail with the error message\[code\]Security violation occurredIncorrect value was passed for field "Message"\[/code\].Seems like it fails as soon as it reads \[code\]Request("Message")\[/code\]
 
Back
Top