What about using a session var on your action page and giving the value of
the time that it was when the submittal occured. And then in your form page
you could say..

<cfif isDefined("session.submittalTime")>
If you are trying to edit this form, please use the link <a href="">Click</a>
<cfabort>
</cfif>



Douglas Brown
Email: [EMAIL PROTECTED]
----- Original Message -----
From: "Bob Haroche" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Monday, September 09, 2002 1:32 PM
Subject: Preventing User from Re-submitting "Add Record" Form


> I've a simple membership app which allows a user to add a new member
> record. Once the record is added, the user is sent to a page
> displaying the results of the data provided. If the user has inputted
> incorrect data, this confirmation page has a link to update the newly
> added record. That's all fine.
>
> But here's the problem: if the user instead uses the browser back
> button, they're returned to the "Add New Record" page where they can
> change the information previously provided. Once they re-submit that
> form, of course, the original record is not updated but instead a
> second, new record is created.
>
> How do I best prevent the user from re-submitting the "Add New Member"
> form when what they really need to do is use the "Edit Member record"
> form.
>
> A google search reveals the existence of a "Submit Once" CF custom
> tag, which might help(?), but it's no longer available on the MM site.
>
> TIA.
>
> Regards,
> Bob Haroche
> O n P o i n t  S o l u t i o n s
> www.OnPointSolutions.com
>
> 
______________________________________________________________________
Get the mailserver that powers this list at http://www.coolfusion.com
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

Reply via email to