473,503 Members | 1,654 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Request.Form returns nothing

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.

Steve

Jul 6 '06 #1
10 14020

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

Jul 6 '06 #2


"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).

I’m completely confused now!

Any more ideas?

Cheers, Steve


Jul 6 '06 #3

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?

Jul 6 '06 #4
try a different name besides action maybe?

have you tested that action does = "show"?

"Steve Last" <Steve La**@discussions.microsoft.comwrote in message
news:B6**********************************@microsof t.com...
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.

Steve

Jul 6 '06 #5


"Larry Bud" 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?

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



Slim - thanks, but i'm 100% sure action=show is working.

Larry - I've never looked at any buffering issues before, any pointers you
can give? Settings somewhere in IIS maybe?

Thanks both...

Steve

Jul 6 '06 #6
Use Request.FORM instead of Request.QUERYSTRING.

Your form method is set to POST.

Use Request.Form if using POST
Use Request.QueryString if using GET

Jul 6 '06 #7
OOPS!! My Overlook... Disregard my last post please!! (I think I've
been working too long today). I didn't see the parameter being passed
in the querystring... SORRY! :)

Jul 6 '06 #8

Steve Last wrote:
"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).

I'm completely confused now!

Any more ideas?

Cheers, Steve
The only time I have ever seen anything like this is when I tried to
submit a form from an html email in Outlook with Firefox set as a
default browser. It never worked. When I made IE the default browser,
it worked every time. I never got to the bottom of it. Don't even
know if it's related to your troubles....

--
Mike Brind

Jul 6 '06 #9
That's it - thanks Mike... :-)

I set IE6 to be the default browser, restart it and all was fine - same with
IE7.

I hope this post thread is searchable from Google so others who have this
problem can find this answer. I searched for hours and found nothing!

Thanks again,

Steve



"Mike Brind" wrote:
>
Steve Last wrote:
"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).

I'm completely confused now!

Any more ideas?

Cheers, Steve

The only time I have ever seen anything like this is when I tried to
submit a form from an html email in Outlook with Firefox set as a
default browser. It never worked. When I made IE the default browser,
it worked every time. I never got to the bottom of it. Don't even
know if it's related to your troubles....

--
Mike Brind

Jul 10 '06 #10
Slim - thanks, but i'm 100% sure action=show is working.
>
Larry - I've never looked at any buffering issues before, any pointers you
can give? Settings somewhere in IIS maybe?
Try response.buffer=false at the top of your page.

There is a default setting in IIS for buffer... I would also try
putting some no-cache code in the page for debugging purposes to make
sure the page is actually reloading.

It's got to be some sort of setting like this. I copied your code
verbatim and it works fine on my server (iis5).

Jul 10 '06 #11

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
10305
by: Christopher Brandsdal | last post by:
Hi! I get an error when I run my code Is there any other way to get te information from my form? Heres the error I get and the code beneath. Line 120 is market with ''''''''''''Line...
5
2440
by: Paxton | last post by:
I created an html email containing a form whose method is POST. The form is posted to an asp page for processing, but no values are retrieved. So I response.write all the Request.Form fields, and...
3
2216
by: Martin Speight | last post by:
Hello, In an ASP script Request.Form() returns a value fine. But I want to be able to chop the returned value up using substring. Having trouble getting the return into a String variable so...
11
18803
by: Jozef | last post by:
I have some old code that I use from the Access 95 Developers handbook. The code works very well, with the exception that it doesn't seem to recognize wide screens, and sizes tab controls so that...
9
21469
by: Dan | last post by:
I am trying to use Request.Form("__EVENTTARGET") to get the name of the control that caused a post back. It keeps returning "". I am not really sure why, this happens for all of my controls...
0
1052
by: nsimeonov | last post by:
I'd like to log the parameters that were passed to any of the functions in my webservice. Is there an easier way to get the parameters from the Request? I wrote this function and for simple...
4
3736
by: Michael Kujawa | last post by:
I am using the following to create an SQL statement using the names and values from request.form. The loop goes through each item in request.form The issue comes in having an additional "and" at...
5
4177
by: Drew | last post by:
I am having an issue with an app that I built, it seems that Request.Form doesn't want to work sometimes, and only sometimes. For instance, I got a call last week about an error, I had the user...
2
6274
by: MDANH2002 | last post by:
Hi From VB.NET I want to simulate the POST request of the following HTML form <html> <title>HTTP Post Testing</title> <body> <form action=http://www.example.com/postdata ...
0
7198
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7072
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7271
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
6979
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7449
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
4998
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4666
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3149
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1498
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.