BTW, You should be able to do the same thing in a javascript routine.
Basically, it would never even have to post to the server until you went
through the second time :)
----- Original Message -----
From: "David Schmidt" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Wednesday, January 16, 2002 5:42 AM
Subject: Re: Strange CF Location problem/
> 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
>
>
______________________________________________________________________
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