Cgi.request_method is post and there is no repost issue either, since we cflocate out to a display page when the action is done.
For the time being, I am doing something like this to prevent the processing action from erroring out.
On my processing page, before doing anything.
<cfif StructIsEmpty(form)>
_javascript_ back
<cfabort>
</cfif>
Nick Han
>>> [EMAIL PROTECTED] 03/03/04 11:19AM >>>
Or check cgi.request_method and make sure it's "POST". That'll indicate
whether the request is a form submission or not, and won't be subject to the
usual caveats about cgi.http_referer.
Cheers,
barneyb
> -----Original Message-----
> From: Burns, John [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, March 03, 2004 11:08 AM
> To: CF-Talk
> Subject: RE: Form Fields Disappearing
>
> Are you sure that someone didn't have the page bookmarked or
> something?
> I've seen problems like this before and it seems that it comes from
> people navigating to the page without going through the
> preceding form.
> You could check to see if the cgi.http_referer is the form page and if
> it's not, don't process it.
>
> John Burns
>
> -----Original Message-----
> From: Nick Han [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, March 03, 2004 1:59 PM
> To: CF-Talk
> Subject: Form Fields Disappearing
>
> Has anyone experienced the problem with form fields from the previous
> page disappearing on the processing page in a post action? Every now
> and then, our users get an error when they are submitting a
> form and it
> was because all the form fields had disappeared.
>
> We know this because we have top-level error handler, which
> shoots us an
> email with all the diagnostic information such as url and form
> variables, all the cgi variables, and everything in the catch
> and error
> structs.
>
> I am baffled by this. I couldn't duplicate this error at
> all. Could be
> it a bug in CF5?
>
> Apparently, someone sort of had the same problem before.
>
> http://www.houseoffusion.com/cf_lists/cache.cfm/4/15/15824.htm
>
> Can somebody confirm this that it is really a CF5 bug?
>
> Nick Han
>
> Nick Han
>
>
>
>
>
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

