Darren,
You might find it easier to post the form to itself, changing the name of
the submit buttons and using those to test. For example:
<cfif isDefined("Form.Cancel")>
~do some cancel action~
<cfif isDefined("Form.Submit")>
~save record~
~cflocation to wherever~
<cfelseif isDefined("Form.Preview")>
<cfset buttonname="Submit">
<cfset button2type="Submit">
<cfset button2name="Cancel">
<cfelse>
<cfset buttonname="Preview">
<cfset button2type="Reset">
<cfset button2name="Reset">
</cfif>
<form action="">
<input type="submit" name="#buttonname#">
<input type="#button2type" name="#button2name#">
</form>
Some of these tags need to be edited, but you should get the idea...
David Schmidt
______________________________________________________________________
Why Share?
Dedicated Win 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=coldfusionc
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