This is not my code - and my apologies to the author (whose name escapes
me). It uses a custom tag to write out the form fields from a previous form
page into the current form page - nice !
*contents of preserveformfields.cfm*
<cfloop list="#Form.FieldNames#" index="CurrField">
<cfset CurrValue = HTMLEditFormat(Evaluate("Form.#CurrField#"))> <!--- this
gives us the field value --->
<cfoutput><input type="hidden" name="#LCase(CurrField)#"
value="#CurrValue#"></cfoutput>
</cfloop>
*end contents of preserveformfields.cfm*
*contents of test1.cfm*
<html>
<body>
<form action="test2.cfm" method="post">
First Name: <input type="text" name="FirstName"><br>
Last Name: <input type="text" name="LastName"><p>
<input type="submit" value=" Next "
</form>
</body>
</html>
*end contents of test1.cfm*
*contents of test2.cfm*
<html>
<body>
<form action="test3.cfm" method="post">
Birthday: <input type="text" name="Birthday"><br>
Favorite Color: <input type="text" name="FavoriteColor"><p>
<cfmodule template="PreserveFormFields.cfm">
<input type="submit" value=" Next ">
</form>
</body>
</html>
*end contents of test2.cfm*
HTH
Cam.
-----------------------------
Campbell Morton
Application Developer
Facilities Assist
-----------------------------
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists