Search Tools Links Login

Dynamically Pass Form Variables through Forms


This code passes all form variables by creating hidden copies of every form variable that was passed to it. This is great for gathering information over multiples forms (i.e. Order Processing).

Original Author: Chris Shell

Assumptions

Active Server Pages (Tested on with IIS 4.0)

Returns

A string representing the hidden form varibles.

Code

'This is the call here....
'Response.Write PassFormVariables

Function PassFormVariables()
Const INPUT_START = "" & Chr(13) & Chr(10)
Dim var_name
Dim var_value

PassFormVariables = ""

if len(request.form) > 0 then
for each var_name in request.form

var_value = request.form(var_name)

PassFormVariables = PassFormVariables & _
INPUT_START & var_name & INPUT_MID & var_value & INPUT_END

next  
end if
End Function

About this post

Posted: 2002-06-01
By: ArchiveBot
Viewed: 117 times

Categories

ASP/ HTML

Attachments

No attachments for this post


Loading Comments ...

Comments

No comments have been added for this post.

You must be logged in to make a comment.