all groups > inetserver asp db > january 2006 >
You're in the

inetserver asp db

group:

Form post not passing data to ASP???


Form post not passing data to ASP??? MK
1/29/2006 7:01:34 AM
inetserver asp db:
I have IIS server installed on XP-pro. I also have Norton Internet
Security installed.

I can run simple ASP programs without any problem. But when I use forms
with post method and call an asp in action, it does not pass any data
to ASP.

Request.Form method on a form field does not return any value.

This code works on web hosting provider server, just does not work on
my workstation with my own IIS server. Any help would be appreciated...

Here is the form code:
<html>
<head>
<title>Guestbook Form</title>
</head>
<body>
<form name="form" method="post" action="seltest.asp">
Name: <input type="text" name="name1" maxlength="20">
<input type="submit" name="Submit" value="Submit">
</form>
</body>
</html>
------------------------
Here is the ASP code:
<html>
<head>
<title>Entry Select</title>
</head>
<body bgcolor="white" text="black">
<%
Response.Write (Request.Form("name1"))
%>
</body>
</html>
Re: Form post not passing data to ASP??? Bob Barrows [MVP]
1/29/2006 10:37:35 AM
[quoted text, click to view]

First step: disable Norton and see if that solves the problem.

[quoted text, click to view]

I've never run into this, sorry.

[quoted text, click to view]

Actually, technically speaking, this is a mixture of html and ASP code. You
do realize you can create a page containing simply:

<%
Response.Write Request.Form("name1")
%>

Notice that I've removed the parentheses from the argument. In vbscript, you
should not use parentheses when calling a sub or a function whose return
value you are not intending to use.

Bob Barrows


--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"

AddThis Social Bookmark Button