Hi,
How do I use the replace function to replace 2 different parts in a DB.
Dim id,newsitem,new sbody,dt,create dby
id = request("id")
newsitem = replace(request ("newsitem") , "'", "''")
newsbody = replace(request ("newsbody") , "'", "''")
dt = now()
createdby = request("update by")
What I need in the 'newsbody' is to replace the ,vbCrLf , <BR> as well as the "'", "''"
or can I add it to the response.write at the viewing end?
Can any one help?
Thanks.
How do I use the replace function to replace 2 different parts in a DB.
Dim id,newsitem,new sbody,dt,create dby
id = request("id")
newsitem = replace(request ("newsitem") , "'", "''")
newsbody = replace(request ("newsbody") , "'", "''")
dt = now()
createdby = request("update by")
What I need in the 'newsbody' is to replace the ,vbCrLf , <BR> as well as the "'", "''"
or can I add it to the response.write at the viewing end?
Can any one help?
Thanks.
Comment