Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Omitting Text String Punctuation on Submit 1

Status
Not open for further replies.

globularbob

Programmer
Nov 15, 2002
69
US
Hello

I have a text area that I'm trying to submit to a database. It works great until punctuation marks appear in the string. For example, when someone places an apostrophe, the sql string thinks that is the end of the statement and gives me an error because it doesn't know what to do with the rest of the line. Does anyone know of a quick workaround?

Thanks in advance!

GB
 
<%
server.htmlencode(&quot;textareaname&quot;)
%> &quot;Where's the Ka-Boom? There's supposed to be an Earth-shattering Ka-Boom!&quot;
Marvin the Martian
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top