|
|
|
|
|
| | |
|
Active Server Pages asp search engine active server page asp application components tutorial CJWSoft ASPProtect ASPBanner ASPClassifieds
(Advanced)
(Components)
(Database)
(General)
(Vbscript)

|
|
Subject: |
Re: Still dont know how |
From: |
Martin McCooe |
Date: |
4/21/1999 6:51:10 AM |
IP: |
194.72.240.4 |
First insert the following function somewhere in you code
<%
Function ValidateStr (tempstr)
if instr(tempstr,"'") > 0 then
tempstr = replace(tempstr,"'","''")
end if
ValidateStr = tempstr
End Function
%>
and then taking firstname as an example, you could write :
ValidFirstname = trim(ValidateStr(firstname))
...and then use ValidFirstname in your sql.
|
Previous Message
Follow Up - Re: Still dont know how - Joe Force 5/3/1999 7:39:42 AM
|
|
|
|
|
|
|
|
|
|
|
|