网络编程
位置:首页>> 网络编程>> Asp编程>> 如何判断发言是否为空?

如何判断发言是否为空?

 来源:asp之家 发布时间:2010-01-12 20:15:00 

标签:判断,表单

用下列代码判断表单提交到服务器的数据是否有谈话内容,如果没有的话就不作处理了:

if len(usersays)<>0 then  
session("whoto")=request.form("whoto")  
session("action")=request.form("action")  
if instr(usersays,chr(39))>0 then  
usersays=replace(usersays,chr(39),"\"&chr(39))  
end if  
if instr(usersays,chr(34))>0 then  
usersays=replace(usersays,chr(34),"\"&chr(34))  
end if  
  
application.lock 


 

0
投稿

猜你喜欢

手机版 网络编程 asp之家 www.aspxhome.com