Request.Form undefined on localhost but OK when ASP filed upl,oaded to web

I have an ASP page that implements a login function and has a form with a Login Name field and password field.  When the user clicks on the button it submits the form to another ASP page.  That page looks up the details in a database and logs the user in if OK.  All pretty standard stuff, and it works fine.  

However I thought I would speed things up b y developing it on the local machine instead of the edit/FTP/Test cycle.  So I installed IIS and it goes except that the contents of the Forms collection are all undefined.

when the files are on the web:

  Request.Forms ("LoginName")

returns a string containing whatever the user had typed in the field.

when the files are on the local machine:

  Request.Forms ("LoginName")

returns undefined.

what could be different?

heres the form:

<form name="LoginForm" action="membervalidate.asp?backto=<%=Server.URLEncode (Request.querystring ("backto")) %>" method="post">
  <input type="text" name="LoginName" size="16" maxlength="50">
  <input type="password" name="Password" size="16" maxlength="50">
</form>


and here is membervalidate.asp:

....
var Connection = OpenDatabase () ;
if (Connection != null)
    {
    Response.write (Request.Form ("LoginName") + "<br>") ;                            // writes "Undefined"
    Response.write (Request.Form ("LoginName").Item + "<br>") ;                    // writes "undefined"
....
rossmcmAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

kevp75Commented:
hmm....first I've heard of this.  Instead of request.form, try just the generic request, see if that'll work for you

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Carl TawnSystems and Integration DeveloperCommented:
Is it just Request.Form that isn't playing, or is it the ASP objects in gereral ?
kevp75Commented:
also....is this running on IIS?
Amazon Web Services

Are you thinking about creating an Amazon Web Services account for your business? Not sure where to start? In this course you’ll get an overview of the history of AWS and take a tour of their user interface.

rossmcmAuthor Commented:
Yes, IIS, Windows XP SP2.  Everything else about the site seems to go OK - database access (once I changed the path) is OK, querystring works OK.
kevp75Commented:
try using request("formfiled") instead of request.from("formfield")

see if that works.

i think I just saw what the problem may be.....in the code you posted you have a space after Request.Form.....if it is not a typo, get rid of that space on both, and try it out
kevp75Commented:
in other words you have:
Request.Form ("LoginName")

change it to:
Request.Form("LoginName")
rossmcmAuthor Commented:
aaaarrrrgggghhhh!!!   It now works.  The only thing I did was went to bed.  So it might be that installing IIS and then not rebooting before I tried to use it was not a good idea.

Sorry to waste your time.  You get the points anyway.

Incidentally, I don't see how the inserted space would make any difference - white space is white space isn't it?  I could presumably have

  Request.Form
    ("LoginrName")

or  

  Request.Form                      ("LoginrName")

kevp75Commented:
essentially you can have all the whitespace in the world, but..... I have run into problems using some funstions and having to many spaces.

LOL.....it's amazing what sleep'll do to a body  :)

thanks for the points
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
ASP

From novice to tech pro — start learning today.