it is really simple, like Ian said.
on your form's action page, assuming you use method="post"
for your
form, all form fields' values are available in the FORM
scope. so if you
had a field named question (<input type="text"
name="question" ...>) on
the action page you can access its value via #form.question#.
you intermediary (preview) action page should create a form
with all
hidden fields to store all data passed from the original
form. the
easiest way to do it is to loop over the #form# collection or
#form.fieldnames# list (which is a comma-delimited list of
all field
names from your form) and create hidden input fields of same
names with
corresponding values.
something like this should do the trick:
<cfoutput>
<form action='finalactionpage.cfm' method='post'>
<cfloop list="#form.fieldnames#" index="fieldname">
<input type='hidden' name='#fieldname#'
value='#form[fieldname]#'>
</cfloop>
</cfoutput>
then display the question for review using
<cfoutput>#htmlcodeformat(form.question)#</cfoutput>
or something
similar, keeping in mind that line breaks from a simple
textarea will
not be visible in html output (thus i used htmlcodeformat()
to preserver
them above). you can alternatively replace all
#chr(13)&chr(10)# in the
question's text with <br> using replace() function. or
do whatever else
you want.
add a submit button which will submit the hidden form to its
fianlactionpage.cfm and you are done.
hth
Azadi Saryev
Sabai-dee.com
http://www.sabai-dee.com/