|
-
Feb 26th, 2003, 03:38 PM
#1
Thread Starter
Junior Member
Apostrophe
I am using the following code in my pages"
VALUE = request.form("user_input")
Var_insert = "Insert into TABLE values (" + VALUE +")"
set rsTable = SqlData.Execute(var_insert)
It works perfectly most of the times, but if the user uses the apostrophe in his input (ie: I'm, he's, etc...) I get an SQL error.
To avoid that error I am extracting the apostrophes with
VALUE = replace(VALUE,"'",""), but that is not the solution I want, once the database will not be able to store a correct English spelling.
Can I get some help with this issue?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|