List Form Elements
May 18th, 2005 by Intermanaut
This VBScript ASP writes the contents of form fields from the previous page (submitted with the POST method) into hidden fields on the current page. I found this handy when I needed to spread a form over several pages - it’s far quicker than writing hidden fields by hand, and you don’t have to worry about keeping subsequent pages updated.
<% for each x In Request.Form %>
<input name=”<% = x %>” size=”40″ type=”hidden” value=”<% = Request.Form(x) %>”>
<% next %>