Request.Form什么都不返回 [英] Request.Form returns nothing

查看:52
本文介绍了Request.Form什么都不返回的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,


我在我们的大学内联网上使用IIS6而且我在使用

Request.Form时遇到了麻烦。这是我的代码:


<%

如果Request.QueryString(" action")=" show"然后

Response.Write" title:" &安培; Request.Form(" NewsTitle")& "< br />"

结束如果

%>

< form action =" / _ admin / blogs /test.asp?action=show" method =" post">

< input type =" text"名称= QUOT; NewsTitle" />

< input type =" submit"值= [新增" />

< / form>


页面刷新并生成以下HTML:


title :< br />


< form action =" / _ admin / blogs / test.asp?action = show" method =" post">

< input type =" text"名称= QUOT; NewsTitle" />

< input type =" submit"值= [新增" />

< / form>


Request.Form(a ?? NewsTitlea ??)为空。我确定我的HTML和ASP / VBScript

还可以,我已经写了很多年了,但是我以前从没见过它。

Request.QueryString工作正常。


在一些谷歌搜索之后,有人暗示了集成Windows

涉及身份验证。有问题的页面没有任何

认证。


有什么想法吗?


提前致谢一个??如果这是错误的新闻组你能否指出我正确的方向




史蒂夫

解决方案



史蒂夫上次写道:


大家好,

我正在为我们的大学内联网使用IIS6而我在使用

Request.Form时遇到了麻烦。这是我的代码:


<%

如果Request.QueryString(" action")=" show"然后

Response.Write" title:" &安培; Request.Form(" NewsTitle")& "< br />"

结束如果

%>

< form action =" / _ admin / blogs /test.asp?action=show" method =" post">

< input type =" text"名称= QUOT; NewsTitle" />

< input type =" submit"值= [新增" />

< / form>


页面刷新并生成以下HTML:


title :< br />


< form action =" / _ admin / blogs / test.asp?action = show" method =" post">

< input type =" text"名称= QUOT; NewsTitle" />

< input type =" submit"值= [新增" />

< / form>


Request.Form(" NewsTitle")为空。我确定我的HTML和ASP / VBScript

还可以,我已经写了很多年了,但我以前从没见过它。

Request.QueryString工作正常。


在一些谷歌搜索之后,有人暗示了集成Windows

涉及身份验证。有问题的页面没有任何

认证。


有什么想法吗?


提前致谢 - 如果这是错误的新闻组,你能指出我正确的方向吗




尝试这样做,看看你是否得到任何东西:


For Request.Form中的每个x

Response.Write x& : &安培; Request.Form(x)

下一页


-

Mike Brind





" Mike Brind"写道:


>

Steve Last写道:


大家好,


我正在为我们的大学内联网使用IIS6而我在使用

Request.Form时遇到了麻烦。这是我的代码:


<%

如果Request.QueryString(" action")=" show"然后

Response.Write" title:" &安培; Request.Form(" NewsTitle")& "< br />"

结束如果

%>

< form action =" / _ admin / blogs /test.asp?action=show" method =" post">

< input type =" text"名称= QUOT; NewsTitle" />

< input type =" submit"值= [新增" />

< / form>


页面刷新并生成以下HTML:


title :< br />


< form action =" / _ admin / blogs / test.asp?action = show" method =" post">

< input type =" text"名称= QUOT; NewsTitle" />

< input type =" submit"值= [新增" />

< / form>


Request.Form(" NewsTitle")为空。我确定我的HTML和ASP / VBScript

还可以,我已经写了很多年了,但我以前从没见过它。

Request.QueryString工作正常。


在一些谷歌搜索之后,有人暗示了集成Windows

涉及身份验证。有问题的页面没有任何

认证。


有什么想法吗?


提前致谢 - 如果这是错误的新闻组,你可以指点我正确的方向。



尝试这样做,看看你是否得到任何东西:


For Request.Form中的每个x

Response.Write x& : &安培; Request.Form(x)

下一页


-

Mike Brind




感谢您的回复。我试过这个 - 它什么都不返回,这里

是表单提交后的HTML:

< form action =" / _ admin / blogs / test。 ASP行动=显示"?; method =" post">

< input type =" text"名称= QUOT; NewsTitle" />

< input type =" submit"值= [新增" />

< / form>


这很奇怪。经过更多的测试后,似乎可以(每次)使用Firefox时使用
,但不是IE6或IE7(Beta3)。


完全混淆了现在!


还有什么想法吗?


干杯,史蒂夫





史蒂夫上次写道:


大家好,


我我在我们的大学内联网上使用IIS6,而且我在使用

Request.Form时遇到了麻烦。这是我的代码:


<%

如果Request.QueryString(" action")=" show"然后

Response.Write" title:" &安培; Request.Form(" NewsTitle")& "< br />"

结束如果

%>

< form action =" / _ admin / blogs /test.asp?action=show" method =" post">

< input type =" text"名称= QUOT; NewsTitle" />

< input type =" submit"值= [新增" />

< / form>


页面刷新并生成以下HTML:


title :< br />


< form action =" / _ admin / blogs / test.asp?action = show" method =" post">

< input type =" text"名称= QUOT; NewsTitle" />

< input type =" submit"值= [新增" />

< / form>


Request.Form(" NewsTitle")为空。我确定我的HTML和ASP / VBScript

还可以,我已经写了很多年了,但我以前从没见过它。

Request.QueryString工作正常。


在一些谷歌搜索之后,有人暗示了集成Windows

涉及身份验证。有问题的页面没有任何

身份验证。


有什么想法吗?



您的代码有效....可能是缓冲问题?


Hi all,

Ia??m using IIS6 for our college Intranet and Ia??m having trouble using
Request.Form. Here is my code:

<%
If Request.QueryString("action") = "show" Then
Response.Write "title: " & Request.Form("NewsTitle") & "<br />"
End If
%>
<form action="/_admin/blogs/test.asp?action=show" method="post">
<input type="text" name="NewsTitle" />
<input type="submit" value="Add" />
</form>

The page refreshes and generates the following HTML:

title: <br />

<form action="/_admin/blogs/test.asp?action=show" method="post">
<input type="text" name="NewsTitle" />
<input type="submit" value="Add" />
</form>

The Request.Form(a??NewsTitlea??) is empty. Ia??m sure my HTML and ASP/VBScript
is ok, Ia??ve been writing for ages, but Ia??ve never seen it do this before.
Request.QueryString works fine.

After some Google searches some have hinted at Integrated Windows
Authentication being involved. The page in question doesna??t have any
authentication.

Any ideas?

Thanks in advance a?? and if this is the wrong newsgroup could you point me in
the right direction.

Steve

解决方案


Steve Last wrote:

Hi all,

I''m using IIS6 for our college Intranet and I''m having trouble using
Request.Form. Here is my code:

<%
If Request.QueryString("action") = "show" Then
Response.Write "title: " & Request.Form("NewsTitle") & "<br />"
End If
%>
<form action="/_admin/blogs/test.asp?action=show" method="post">
<input type="text" name="NewsTitle" />
<input type="submit" value="Add" />
</form>

The page refreshes and generates the following HTML:

title: <br />

<form action="/_admin/blogs/test.asp?action=show" method="post">
<input type="text" name="NewsTitle" />
<input type="submit" value="Add" />
</form>

The Request.Form("NewsTitle") is empty. I''m sure my HTML and ASP/VBScript
is ok, I''ve been writing for ages, but I''ve never seen it do this before.
Request.QueryString works fine.

After some Google searches some have hinted at Integrated Windows
Authentication being involved. The page in question doesn''t have any
authentication.

Any ideas?

Thanks in advance - and if this is the wrong newsgroup could you point me in
the right direction.

Try doing this to see if you get anything:

For Each x in Request.Form
Response.Write x & ": " & Request.Form(x)
Next

--
Mike Brind




"Mike Brind" wrote:

>
Steve Last wrote:

Hi all,

I''m using IIS6 for our college Intranet and I''m having trouble using
Request.Form. Here is my code:

<%
If Request.QueryString("action") = "show" Then
Response.Write "title: " & Request.Form("NewsTitle") & "<br />"
End If
%>
<form action="/_admin/blogs/test.asp?action=show" method="post">
<input type="text" name="NewsTitle" />
<input type="submit" value="Add" />
</form>

The page refreshes and generates the following HTML:

title: <br />

<form action="/_admin/blogs/test.asp?action=show" method="post">
<input type="text" name="NewsTitle" />
<input type="submit" value="Add" />
</form>

The Request.Form("NewsTitle") is empty. I''m sure my HTML and ASP/VBScript
is ok, I''ve been writing for ages, but I''ve never seen it do this before.
Request.QueryString works fine.

After some Google searches some have hinted at Integrated Windows
Authentication being involved. The page in question doesn''t have any
authentication.

Any ideas?

Thanks in advance - and if this is the wrong newsgroup could you point me in
the right direction.


Try doing this to see if you get anything:

For Each x in Request.Form
Response.Write x & ": " & Request.Form(x)
Next

--
Mike Brind



Thanks for the reply. I''ve tried this - it returns absolutely nothing, here
is the HTML after form submission:
<form action="/_admin/blogs/test.asp?action=show" method="post">
<input type="text" name="NewsTitle" />
<input type="submit" value="Add" />
</form>

It''s very strange. After more testing it seems to work (every time) when
using Firefox, but not IE6 or IE7 (Beta3).

Ia??m completely confused now!

Any more ideas?

Cheers, Steve




Steve Last wrote:

Hi all,

I''m using IIS6 for our college Intranet and I''m having trouble using
Request.Form. Here is my code:

<%
If Request.QueryString("action") = "show" Then
Response.Write "title: " & Request.Form("NewsTitle") & "<br />"
End If
%>
<form action="/_admin/blogs/test.asp?action=show" method="post">
<input type="text" name="NewsTitle" />
<input type="submit" value="Add" />
</form>

The page refreshes and generates the following HTML:

title: <br />

<form action="/_admin/blogs/test.asp?action=show" method="post">
<input type="text" name="NewsTitle" />
<input type="submit" value="Add" />
</form>

The Request.Form("NewsTitle") is empty. I''m sure my HTML and ASP/VBScript
is ok, I''ve been writing for ages, but I''ve never seen it do this before.
Request.QueryString works fine.

After some Google searches some have hinted at Integrated Windows
Authentication being involved. The page in question doesn''t have any
authentication.

Any ideas?

Your code works.... Maybe a buffering problem?


这篇关于Request.Form什么都不返回的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆