Re: Form post not passing data to ASP???

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



MK wrote:
> I have IIS server installed on XP-pro. I also have Norton Internet
> Security installed.

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

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

I've never run into this, sorry.

>
> 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:

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"


.



Relevant Pages

  • Re: VBScript HTTP XML Post - Please help!
    ... > being hosted on an IIS server and having ASP code. ... Anthony ...
    (microsoft.public.scripting.vbscript)
  • Problem with IIS Server Using ASP
    ... We're having a problem with IIS6 on a Windows 2003 Server. ... We have an ASP ... DLL, which inserts some data into a database. ... As I said, this worked fine on W2000 IIS Server, so if anyone has come ...
    (microsoft.public.inetserver.iis.activeserverpages)
  • Re: Quick test for ActiveX?
    ... a BLOB object), one functional difference aside from the ActiveX ... "someASPfile" that uses the above ASP code and includes clsupload.asp ... this ASP code to reproduce your symptoms? ... issues regarding classic ASP and IIS 7. ...
    (microsoft.public.inetserver.asp.general)
  • Re: ASP, looping, and stored procedures.... error 800a0bb9 ...
    ... I'm just going to include the .asp page here. ... > If your bottleneck turns out to be occurring in the ASP code itself rather ... > stored procedure, then you may want to think about utilizing GetRows ... >> Oh, and by the way, the test box has SQL server and IIS on it. ...
    (microsoft.public.inetserver.asp.db)
  • Re: ASP security in HTML pages
    ... > I have been googling around to know how secure can be ASP code, ... > - For a newbee, impossible to get the asp scripts inserted in an HTML page as they are not displayed in the client's browser, ... securely and server permissions are properly setup. ... The server never sends the ASP code to the client if it is properly configured. ...
    (Security-Basics)