...

View Full Version : Refreshing pages and resubmitting forms



WillowFae
11-12-2004, 11:06 AM
I'm not sure if this is achievable in JavaScript or not (am using ColdFusion, so that is another possibility).

I have a list of tasks on a page and when a user submits a new task the page is reloaded, the submission to the database is processed at the top, and then when the list appears it has the new task in it.

This works, no problem.

But if the user refreshes the screen after that then the form is resubmitted and the data ends up in the database again.

Is there a way to get rid of the form data after it has been submitted and make the page act as if no form submission has been made?

Kor
11-12-2004, 12:11 PM
that then the form is resubmitted


how's that? Isn't it there a submit button? Or the submitting process is auto, somehow? (which is not a wise thing, I reckon)

WillowFae
11-12-2004, 12:24 PM
It's what happens as standard. If you submit a form anywhere and then refresh the page it asks you if you want retry submitting the form.

"The page cannot be refreshed without resending the information.
Click retry to send the information again,
or click Cancel to return to the page that you were trying to view"

WillowFae
11-15-2004, 11:20 AM
Can no one advise me on this?

It sounds, from what Kor said that there is a way to refresh a page without the form automatically resubmitting.

Roy Sinclair
11-16-2004, 08:17 PM
It sounds, from what Kor said that there is a way to refresh a page without the form automatically resubmitting.

That is not correct, there is no way to refresh a page that's the result of submitting a form without submitting the form again.

FastCougar
11-16-2004, 10:32 PM
If you are using a popup window to create the new record in the Database, you can use javascript to populate the drop down with the new value. I am doing this successfully in ColdFusion w/javascript without a problem.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum