View Single Post
  #6 (permalink)  
Old April 30th, 2008, 01:00 PM
dparsons dparsons is offline
Wrox Author
 
Join Date: Oct 2005
Posts: 4,104
Thanks: 1
Thanked 64 Times in 64 Posts
Send a message via AIM to dparsons
Default

x is a counting variable so as the For loop executes x will be incremented by 1. So what you are saying in the code is:

For x = 1 to Request.Form.Count = Until the value of x is equal to the number of items in Request.Form preform this action:
Response.Write Request.Form.Key(x) = Return the key value from x place inside the collection
Response.Write Request.Form.Item(x) = Return the item (which is the form value) from x place inside the collection
Next = Cause the code to loop

If you place the code snipped i provided on your Submit page you will see how it works. (It will write out all of the form element names and values from the previous page)

Does that make more sense?
-Doug

================================================== =========
Read this if you want to know how to get a correct reply for your question:
http://www.catb.org/~esr/faqs/smart-questions.html
================================================== =========
.: Wrox Technical Editor / Author :.
Wrox Books 24 x 7
================================================== =========
Reply With Quote