Wednesday, May 20, 2009

get values from all the form fields

// ++++++++++++++++ method # 1 ++++++++++++++++
For each item in Request.Form
response.write(item & " # " & request(item))
Next
// ----------------------------- method # 1 -----------------------------

// ++++++++++++++++ method # 2 ++++++++++++++++
For x = 1 To Request.Form.count()
Response.Write(x & ". " & Request.Form.key(x) & " = ")
Response.Write(Request.Form.item(x))
Next
// ----------------------------- method # 2 -----------------------------