访问形式发布数据,而不REQUEST.FORM [英] Access form post Data without request.Form
问题描述
我知道这是很奇怪,但我得到我的网页上下面的错误,我知道我不能有 REQUEST.FORM
与 ENCTYPE = 的multipart / form-data的
无法使用的Request.Form
收集后调用了BinaryRead
。
I know this is very weird but I get following error on my page and I know I can't have Request.form
with ENCTYPE="multipart/form-data"
Cannot call BinaryRead
after using Request.Form
collection.
我的实际上传页面我使用Forms集合来访问像 Uploader.Form表格数据(txtTitle)
。
My Actual Uploader page I use Forms collection to access form data like Uploader.Form("txtTitle")
.
但是,这uploder页面上我已经包括夫妇这对其他安全检查等标准thruout应用程序,这些网页中使用 REQUEST.FORM
ASP页面。
有什么其他替代访问的形式发布数据,而不 REQUEST.FORM
对这些安全网页?由于这些是常见的网页被其他页面使用不具有 ENCTYPE =的multipart / form-data的
在他们的形式。
But on this uploder page I have included couple of ASP pages which are standard thruout app for other security checks and etc and those pages use Request.form
.
What's other alternative to access form post data without Request.form
on those security pages? Since those are common pages use by all other pages which don't have ENCTYPE="multipart/form-data"
on their forms.
在此先感谢!
推荐答案
把包括code,它使用的Request.Form一个函数里面,比传递值作为参数传递给函数,而不是使用的Request.Form
Put the includes' code which uses Request.Form inside a function, than pass values as parameters to the function instead of using Request.Form
所以,在你的页面会是这个样子:
So in your page it will look something like this:
<!--#INCLUDE FILE="myinclude.asp"-->
MyIncludeFunction Uploader.Form("MyIncludeFunctionParameter")
和所有其他网页:
<!--#INCLUDE FILE="myinclude.asp"-->
MyIncludeFunction Request.Form("MyIncludeFunctionParameter")
这篇关于访问形式发布数据,而不REQUEST.FORM的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!