Welcome![Sign In][Sign Up]
Location:
Search - request2_class a

Search list

[WEB Coderequest2

Description: request类 取代ASP中的Request对象。新Request2对象与原Request对象相比,增加了防SQL注入功能,集成了无组件上传功能。 使用方便,新旧对象使用方法极为类似。比如原来的写法是Request.Form("aa"),现在的写法是Request2.Form("aa");原来的写法是Request.QueryString("bb"),现在的写法是Request2.QueryString("bb");原来的写法是Request("cc"),现在的写法是Request2("cc")。 增加了防SQL注入功能。直接写Set rs = Conn.Execute("select * from tb where dd= "&Request2.Form("dd")&" ")即可。 集成了无组件上传功能。如果表单中含有<input type=file name=ff>,则可以直接通过Request2.Form("ff")得到上传的文件对象,并通过Request2.SaveAs方法将客户端上传的文件保存在服务器上,也可以使用Request2.AutoSave方法自动更名保存。 Ver 2.0 版本增加了Form2集合,用于处理表单元素多值的情况,例如checkbox的多选取值。-request to replace the ASP Object Request. New Request2 Object Request with the original target, an increase of anti-function SQL injection, Non-component integrated upload function. Easy to use, use of old and new object is very similar. For example, the original wording of the Request.Form ( "aa") the current wording of the Request2.Form ( "aa"); the original wording of the Request.QueryString ( "bb") the current wording of the Request2.QueryString ( "bb"); the original wording of the Request ( "cc") the current wording of the Request2 ( "cc"). Increased anti-function SQL injection. Direct write Set rs = Conn.Execute ( "select* from tb wher e dd = "
Platform: | Size: 28672 | Author: mars | Hits:

CodeBus www.codebus.net