I think what your after and is a much fancier solution is the form to submit
to itself


<cfif isDefined("form.btnSubmit")>
    -- if everything is ok do a relocation that prevents refresh as well
    <cflocation url="">     -- if something is not ok then the form fields are populated again with
the previous data
</cfif>


<cfparam name="form.test1" value="">


<form method="post" action=""> <input type="text" name="test1" value="#form.test1#">
<input type=submit" name="btnSubmit" value="submit">
</form>


PS. I just wrote this in this email, so there might be some issues???


Taco Fleur
Blog  <http://www.tacofleur.com/index/blog/>
http://www.tacofleur.com/index/blog/
Methodology http://www.tacofleur.com/index/methodology/

Tell me and I will forget
Show me and I will remember
Teach me and I will learn

-----Original Message-----
From: Andy Ousterhout [mailto:[EMAIL PROTECTED]
Sent: Sunday, 15 February 2004 5:31 AM
To: CF-Talk
Subject: Back Button and form resubmittal/display

Is there a way that I can have a form redisplayed when the back button is
used?

Right now the "Page Expired" message shows and the user has to refresh and
resubmit.  All I want to have happen is to have the previous page shown just
like it was before a submit button was pressed.

Andy
  _____
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

Reply via email to