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 10 14013
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).
I’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?
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
"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
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
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! :)
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
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
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). This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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...
|
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...
|
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...
|
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...
|
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...
| |
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...
|
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...
|
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...
|
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 ...
|
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...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
| |
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...
|
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...
|
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...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
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: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |