关于ASP的replace替换的最后提问
<%dimdanweiid,danweiorder,danweiname,danweino,iifrequest("action")="update"thenfori=1...
<%
dim danweiid,danweiorder,danweiname,danweino,i
if request("action")="update" then
for i=1 to request.form("danweiid").count
danweiid=replace(request.form("danweiid")(i),"'","")
danweiorder=replace(request.form("danweiorder")(i),"'","")
danweiname=replace(request.form("danweiname")(i),"'","")
if replace(request.form("danweiorder")(i),"'","")="" then
%>
这是后台,关于修改数据库中邮编字段内容的表单接收处理。
我知道:replace(request.form("danweiid")(i),"'","")
替换request.form("danweiid")(i)中的'号替换为空
类似这些替换‘的,我不太明白它的意义是什么?为啥要替换,不替换又怎么样?请指教谢谢 展开
dim danweiid,danweiorder,danweiname,danweino,i
if request("action")="update" then
for i=1 to request.form("danweiid").count
danweiid=replace(request.form("danweiid")(i),"'","")
danweiorder=replace(request.form("danweiorder")(i),"'","")
danweiname=replace(request.form("danweiname")(i),"'","")
if replace(request.form("danweiorder")(i),"'","")="" then
%>
这是后台,关于修改数据库中邮编字段内容的表单接收处理。
我知道:replace(request.form("danweiid")(i),"'","")
替换request.form("danweiid")(i)中的'号替换为空
类似这些替换‘的,我不太明白它的意义是什么?为啥要替换,不替换又怎么样?请指教谢谢 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询