我爱Aspx >> Asp.Net >> 用文本+ASP打造新闻发布系统'Fields("xxx").Length 取得Form中xxx(Form Object)的数据长度
'Fields("xxx").Value 取得Form中xxx(Form Object)的数据内容
Dim FormData,FormSize,gnote,bnote,notes,binlen,binstr
FormSize=Request.TotalBytes
FormData=Request.BinaryRead(FormSize)
Set Fields = GetUpload(FormData)
'############判断输入错误
dim news_title,news_content,news_src,mysession
mysession=Fields("mysession").value
if len(mysession)=0 then
Response.Write "非法登陆或超时请重新登陆"
Response.End
end if
news_title=Fields("news_title").value
news_title=replace(news_title,"|","|")
news_content=Fields("news_content").value
news_src="http://dev.21tx.com/2005/11/04/Fields(news_src).value
news_src=replace(news_src,"|","|")
if len(news_title)=0 then%〉
〈script〉
alert("出错!新闻标题不能为空");
history.go(-1);
//window.location="news_add.asp";
〈/script〉
〈%Response.end
end if
if len(news_content)=0 then%〉
〈script〉
alert("出错!新闻内容不能为空");
history.go(-1);
〈/script〉
〈%end if
if len(news_src)=0 then%〉
〈script〉
alert("出错!新闻来源不能为空");
history.go(-1);
〈/script〉
〈%Response.end
end if
dim varchar
防范ASP木马的十大基本原则[05-15]
ASP木马的原理和基本防范方法[05-15]
用ASP木马实现FTP和解压缩[05-15]
在ASP程序中实现数据库事务控制[05-15]
20种看ASP程序源码的方法及工具[05-15]
深入理解ASP中FSO的神奇功能[05-15]
ASP内置对象Request和Response详..[05-15]
在ASP中轻松实现记录集分页显示[05-15]
ASP中使用Form和QueryString集合[05-15]
在ASP中访问和更新Cookies集合[05-15]
防范ASP木马的十大基本原则[05-15]
ASP木马的原理和基本防范方法[05-15]
用ASP木马实现FTP和解压缩[05-15]
在ASP程序中实现数据库事务控制[05-15]
20种看ASP程序源码的方法及工具[05-15]
深入理解ASP中FSO的神奇功能[05-15]
借他人的程序造自己的家园 菜鸟也..[05-15]
ASP内置对象Request和Response详..[05-15]
在ASP中轻松实现记录集分页显示[05-15]
ASP中使用Form和QueryString集合[05-15]