My Comment fields (textareas) end up with 9 extra "special characters" after any data. If no text is added to the field when the page is submitted, then it puts just the 9 characters into the database. They seem to be "tab, Cr, Tab, Cr, Tab, Cr etc
Code:
<TEXTAREA NAME="Comments"
STYLE="color: FF0000; font-size: 11px"
WRAP=VIRTUAL COLS="065" ROWS="004">
</TEXTAREA>
Dim Comments 'as String
Comments = Replace(Request.Form("Comments"
,"'","''"
Comments = Trim(Comments)
'Add Comments if present
If Len(Comments) <> 0 Then
'Add the column name to the insert string
strInsert = strInsert & ",Comments "
'Add the value to the value string
strValues = strValues & ",'" & Comments & "'"
End if
These characters show up in the SQL database as a little "square" character.
Does anyone have any idea what is causing this or what to do about it?
Thanks
Code:
<TEXTAREA NAME="Comments"
STYLE="color: FF0000; font-size: 11px"
WRAP=VIRTUAL COLS="065" ROWS="004">
</TEXTAREA>
Dim Comments 'as String
Comments = Replace(Request.Form("Comments"
Comments = Trim(Comments)
'Add Comments if present
If Len(Comments) <> 0 Then
'Add the column name to the insert string
strInsert = strInsert & ",Comments "
'Add the value to the value string
strValues = strValues & ",'" & Comments & "'"
End if
These characters show up in the SQL database as a little "square" character.
Does anyone have any idea what is causing this or what to do about it?
Thanks