Skip to main content
Known Participant
Oct 19, 2010 11:47 AM UTC
Answered

apostrophe ASP form

Hi,

I have got a form that allows people to book for an event. This data also gets saved into a database. When people type in an apostrophe they receive an error. What is the best way to insert an apostrophe into a database via a form?

I am using asp.

Hope someone can help!

Thanks

This topic is closed to new replies. Start a new post to keep the conversation going.
bregentCorrect answer
Participating Frequently
Oct 19, 2010 5:15 PM UTC

Use Replace() to replace each single quote character with 2 single quote characters.

2 replies

bregentCorrect answer
Participating Frequently
Oct 19, 2010 5:15 PM UTC

Use Replace() to replace each single quote character with 2 single quote characters.

Translate
dips045Author
Known Participant
Oct 20, 2010 3:05 PM UTC

Thank you very much :-D

Translate