loop through request.form and create the variables with proper values. in ASP CLASSIC

I have several forms, with tons of key/values that should be different from form to form, but refers to the same "item".i would like to make a ASP script that takes all these key/values and creates the variables with values. i mean, if i have a text field named "name_field_codenumber" with a value of "32_someName" i would like to create a variable named \[code\]name_field_codenumber\[/code\] witha value of \[code\]32_someName\[/code\], so i can test that variable print, end so on, i've done this:\[code\]for each x in Request.Form x.name = Request.Form(x) next \[/code\]which bring me a 500 error, object requiredand this\[code\] for each x in Request.Form eval(x) = Request.Form(x) next \[/code\]which returns a type mismatch...may someone help me, i think it should be very easy but i can't get this thing to work :D
 
Back
Top