Copy link to clipboard
Copied
Hello all,
I'm new to coldfusion, and want to know is there a sulution to clear the cache after submitting a cfml page, coz when refreshing the page (F5) it submits the form again..
thank you
Copy link to clipboard
Copied
If you have a page that processes a form, and you refresh it without resubmitting the form, what would you expect to happen?
Copy link to clipboard
Copied
so is that the normal behaviour ?
I mean once the form submitted, there's no need to keep all the form values in the browser cache, and i asked if there a solution to cheat that issue ?
Copy link to clipboard
Copied
Yes that's the normal behavior if you use method = post when submitting your form. If you use method = get the form variables become url variables and you may not have to re-submit the form on a page refresh. I don't know for sure because I never use method = get.
Copy link to clipboard
Copied
ok, i see, thank you, it was helpful
Copy link to clipboard
Copied
I mean once the form submitted, there's no need to keep all the form values in the browser cache
That is a matter for the browser to decide. There are times when the client wishes to keep the form values.
i asked if there a solution to cheat that issue ?
Yes. Use the form's action attribute to specify an action page that is distinct from the form page.
Copy link to clipboard
Copied
Seems to be good solution to set form action to different page
as i said, i'm new to coldfusion and still thinking C#
anyway it does matter.
thank you guys
Copy link to clipboard
Copied
as i said, i'm new to coldfusion
Nevermind. We all are, in a way. Coldfusion is growing all the time.