cfdeveloper
Programmer
Hi Guys,
I'm passing a url variable a string/text that has a apostrphee in it.
Ex:
mytext = It's a test
I'm escaping it like this:
window.location.href = "somepage.cfm?txt="+escape(mytext);
I'm passing this url varialbe, url.txt to the select statement,
I get an error:
Incorrect syntax near 's'.
Can someone show me how to get round this please.
Best regards
cfcoder
I'm passing a url variable a string/text that has a apostrphee in it.
Ex:
mytext = It's a test
I'm escaping it like this:
window.location.href = "somepage.cfm?txt="+escape(mytext);
I'm passing this url varialbe, url.txt to the select statement,
I get an error:
Incorrect syntax near 's'.
Can someone show me how to get round this please.
Best regards
cfcoder