T
Techhead
When I perform the following ASP script to insert form data into SQL,
it appends a trailing "," after the vaule:
sSqlString1 = ("INSERT INTO TABLE(COLUMNA,COLUMNB,COLUMNC,COLUMND)
VALUES ('" & Avalue & "', '" & Bvalue & "', '" & Cvalue & "', '" &
Dvalue & "')")
conn.Execute sSqlString1
When I want to display the data:
Response.Write("A Value: " & AValue & "<br />")
Response.Write("B Value: " & BValue & "<br />")
Response.Write("C Value: " & CValue & "<br />")
Response.Write("D Value: " & DValue & "<br />")
It shows up like this:
A Value: Some data,
B Value: Some data,
C Value: Some data,
D Value: Some data,
It also adds the trailing comma into the SQL table as well. The comma
is not a value in my form and it is not a default value for any form
field.
Any ideas?
it appends a trailing "," after the vaule:
sSqlString1 = ("INSERT INTO TABLE(COLUMNA,COLUMNB,COLUMNC,COLUMND)
VALUES ('" & Avalue & "', '" & Bvalue & "', '" & Cvalue & "', '" &
Dvalue & "')")
conn.Execute sSqlString1
When I want to display the data:
Response.Write("A Value: " & AValue & "<br />")
Response.Write("B Value: " & BValue & "<br />")
Response.Write("C Value: " & CValue & "<br />")
Response.Write("D Value: " & DValue & "<br />")
It shows up like this:
A Value: Some data,
B Value: Some data,
C Value: Some data,
D Value: Some data,
It also adds the trailing comma into the SQL table as well. The comma
is not a value in my form and it is not a default value for any form
field.
Any ideas?