yes what u say is right but ur thinking he wants to go all the way through the process, which is what i originally thought too but what he wants to do is go back to the form page if the username already exists and have the form fields contain the info that was submitted. thats why i suggested what i did. Sorry i made points too everything u said but im not gunna type it all again
btw~ glad too see u finally made your site in cfm, took u long enough ;)
original post
I posted this on cf-newbies, but didn't understand the answer, nor
could I get another solution to work.
I have a form that goes to a page which updates a database. I check
to see if the form exists and that an answer exists so that the
database will be updated. Unfortunately, when I refresh the page, it
re-submits the form content. I tried setting up a no-cache pragma
<META HTTP-EQUIV="Pragma" CONTENT="no-cache">
<META HTTP-EQUIV="Expires" CONTENT="-1">
as well as:
document.forms[0].reset(); which only applies to the form elements,
it seems. I can set form elements through CF, but they're set back
to their original values on refresh.
I tried this, which I saw on a CF site:
<CFSET gmt = gettimezoneinfo()>
<CFSET gmt = gmt.utcHourOffset>
<CFIF gmt EQ 0>
<CFSET gmt = "">
<CFELSEIF gmt GT 0>
<CFSET gmt = "+" & gmt >
</CFIF>
<CFHEADER NAME="Pragma" VALUE="no-cache">
<CFHEADER NAME="Cache-Control" VALUE="no-cache, must-revalidate">
<CFHEADER NAME="Last-Modified" VALUE="#DateFormat(now(), 'ddd, dd mmm
yyyy')# #TimeFormat(now(), 'HH:mm:ss')#GMT#gmt#">
<CFHEADER NAME="Expires" VALUE="Mon, 26 Jul 1997 05:00:00GMT">
<cfflush> didn't work, though it seems to apply from the manual.
I've tried alot of things, for hours. Still, when I refresh the
page, it resubmits the content. Anyone know a cure for this, either
through CF or not?
--
Daniel Kessler
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]

