As the title says, I need to stop a user's browser from caching the form they've submitted.
Is there any way of doing this?
<form method="post" autocomplete="off">
I'm a little confused by your suggestion. Could you explain how turning auto complete off stops the form from being cached?
The 'cache-control' HTTP header is used to instruct web clients on resource caching.
You could try setting this with a meta tag in the header your HTML page, like....
<meta http-equiv="cache-control" content="no-cache" />
... or possibly set the header for a resource from within your web server's config.
Thanks for the suggestion. I'll give it a try.