The form was initially working until the client requested some refinement. I have been through all the tutorials 3 or 4 times, however they do not provide the answer.
If you have a look at the following page, it will give you an idea of what I'm trying to do, nothing complicated.
contact.php
Unfortunately, I cannot use the 'Store entire form in cookie' behaviour, as this also remembers the 'code' that is inserted. Where the complication seems to come in, is that the form is within a template, so I cannot select a "body" tag, to apply the behaviour 'Set entire form from cookie' OnLoad. I have to use OnClick or something similar and that immediately re-inserts the incorrect code that was stored in the cookie when you press 'submit', and therefore automatically fails.
At the moment there is only a Server Validation in place (Like Entry), and redirects to another page if the code is incorrect.
Is there any way of remembering only the first 6 elements of the form and carrying that over to the 'failed' page. Or does this require a completely different solution.