Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 Development Tools
 Other Development Tools
 How do i get all the form variables in a post

Author  Topic 

afrika
Master Smack Fu Yak Hacker

2706 Posts

Posted - 2005-03-24 : 07:05:20
hello,
Could someone please remind me how to get all the form variables in a post ?

when you do not know the form values

thanks

amachanic
SQL Server MVP

169 Posts

Posted - 2005-03-24 : 13:43:34
In classic ASP, document.form is a collection. In ASP.NET, you can use document.form.elements, IIRC.



---
Adam Machanic
SQL Server MVP
http://www.datamanipulation.net
Go to Top of Page

afrika
Master Smack Fu Yak Hacker

2706 Posts

Posted - 2005-03-24 : 13:57:24
I jsut got it figured out. Am using the script below

thanks


<%For x = 1 to Request.Form.Count
Response.Write Request.Form.Key(x) & " = "
Response.Write Request.Form.Item(x) & "<br><br> "
Next %>
Go to Top of Page
   

- Advertisement -