Get POSTed form values

  • Thread starter Christopher Benson-Manica
  • Start date
C

Christopher Benson-Manica

When a form is POSTed, how can I get at the POSTed values? (Yes, I
know I could use GET and get them from the url, surely there is a
better way, yes?)
 
E

Evertjan.

Christopher Benson-Manica wrote on 21 jan 2009 in comp.lang.javascript:
When a form is POSTed, how can I get at the POSTed values? (Yes, I
know I could use GET and get them from the url, surely there is a
better way, yes?)

in Javascript under ASP, that runs serverside, try:

var myInputText = Request.form('myInputText');
 
T

The Natural Philosopher

Christopher said:
When a form is POSTed, how can I get at the POSTed values? (Yes, I
know I could use GET and get them from the url, surely there is a
better way, yes?)
When its posted it goes out of the domain of clientside javacript.

Prior to tat geteElemntsByName('whatever')[0].value is the value of form
element 'whatever'.

Once the server gets them, you won't be using javascript to read them.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,774
Messages
2,569,598
Members
45,145
Latest member
web3PRAgeency
Top