Forums
This topic is locked
Get names of request variables
Posted 28 Apr 2006 22:37:47
1
has voted
28 Apr 2006 22:37:47 Michael Behan posted:
I have a page that is passed values from various forms. The page doesnt know what these variables will be called but I can obtain there values like this || Request.Form(i) || this will give me the value of the ith variable.I want to be able to get the names of these variables too. Is there a way of doing this?
Example: the url looks like: xxxx.asp?foo=1&bar=34
I know that the first variable has a value of 1 but I want to know that it was called foo.
I expect there is a simple way of doing this but I cant find it anywhere!