Peter,

looks like the ticket! Will give it a go..
Cheers,
D

-----Original Message-----
From: Peter Harrison [mailto:[EMAIL PROTECTED]
Sent: 08 January 2004 15:12
To: [EMAIL PROTECTED]
Subject: RE: [ cf-dev ] form variables


Hi

Does this help?

<cfif url.processForm is not "true">
<h1>1st call to this page</h1>
<form action="blah.cfm?processForm=true">
...
</form>
...
...
...
<cfelse>
<h1>2nd call to this same page</h1>
...
(processes the form data)
...
<script language="javascript">
        // Replace this URL in the browser's history with the following one,
        // so that when the user presses Back the go to the page before this one
        // and the data is not re-processed.
        location.replace('blah.cfm');
</script>
</cfif>

- Peter


-----Original Message-----
From: Damien Gallagher [mailto:[EMAIL PROTECTED]
Sent: 08 January 2004 14:26
To: [EMAIL PROTECTED]
Subject: RE: [ cf-dev ] form variables


just a quick one...

I have a form page that needs to submit to itself to process the action.
Problem is, once the action's complete the form variables are still in the
page and so clicking refresh reprocesses the lot. Any ideas how to purge the
variables?

Thanks,
Damien


--
** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
For human help, e-mail: [EMAIL PROTECTED]



--
** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
For human help, e-mail: [EMAIL PROTECTED]


-- 
** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
For human help, e-mail: [EMAIL PROTECTED]

Reply via email to