W Luke wrote:

> I have a form that is posted to a processing page.  I want to add another
> button that submits the form information to another page, if the user
> wishes, which will preview what it will look like.
> 
> How can I do this?

Add a "preview" checkbox on the form. On the processing page test to see if
the checkbox is in the FORM vars and if so then preview the data instead of
processing it.

<cfif isDefined("FORM.chkPreview")>

    <!-- do preview here -->

<cfelse>

   <!-- do processing here -->

</cfif>

-- 

Any fool can make a rule, and any fool will mind it.

Thoreau 


email: [EMAIL PROTECTED]
web: http://www.pixelgeek.com/


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to