Strings and apostrophes
Posted: Tue Jul 26, 2005 2:03 pm
Hi,
I am reading a string into a variable via a html form. I have noticed that if my string includes an apostrophe a slash is added in front of it....
ie if the user inputs:
This is Rob's test page
The output is:
This is Rob\'s test page
The problem is that I am writing the data into a Topspeed Clarion database and the slashes causes an error when I try and write.
Is there a way around this problem or does anyone know how to deal with strings that in clude apostrophes.
Many thanks in advance.
Rob Burne.
I am reading a string into a variable via a html form. I have noticed that if my string includes an apostrophe a slash is added in front of it....
ie if the user inputs:
This is Rob's test page
The output is:
This is Rob\'s test page
The problem is that I am writing the data into a Topspeed Clarion database and the slashes causes an error when I try and write.
Is there a way around this problem or does anyone know how to deal with strings that in clude apostrophes.
Many thanks in advance.
Rob Burne.