Sure...
In the template that processes the form entries-->
<cfif isDefined("FORM.submit")>
<cfif FORM.submit eq "Preview">
** code to preview **
(you could include the template that outputs to end users - just
modify it to also handle FORM variables when applicable).
<cfelseif FORM.submit eq "Add">
** code to insert record to database **
</cfif>
</cfif>
-----Original Message-----
From: Ian Vaughan [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 18, 2002 8:48 AM
To: CF-Talk
Subject: Advanced Coldfusion - Generating Preview Pages ???
I am using standard html forms in a browser to allow admin users to
add/modify entries to an oracle database via Coldfusion.
When the form is submitted these changes are then sent to the relevant
fields in the database table.
And a seperate coldfusion template displays the output to end web
users.
At present this is all done automatically when the user submits the
form.
What I would like to do, is offer the administration user (who
adds/modifies
stories) a preview option of how the page would look in the web
browser,
before they actually submit their details to the database, so they have
an
idea of how the information they have just entered in the relevant form
fields would look when generated from coldfusion and viewed by an end
user
in their browser.
Is this process viable with Coldfusion , if so have any list members
achieved anything like this?
Ian
______________________________________________________________________
Dedicated Windows 2000 Server
PIII 800 / 256 MB RAM / 40 GB HD / 20 GB MO/XFER
Instant Activation � $99/Month � Free Setup
http://www.pennyhost.com/redirect.cfm?adcode=coldfusiona
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists