Advertisement
5_2007-2008 Files/ File Controls/ Input/ Output #172453

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).

AI

AI Summary: This codebase represents a historical implementation of the logic described in the metadata. Our preservation engine analyzes the structure to provide context for modern developers.

Source Code
original-source
'This is the call here....
'Response.Write PassFormVariables

Function PassFormVariables()
Const INPUT_START = "<input type=hidden name="
Const INPUT_MID = " value="
Const INPUT_END = ">" & 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
Original Comments (3)
Recovered from Wayback Machine