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?
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?