ok I think I got it.
in the head
<script src="../webassist/cookies/cookies.js"></script>
<script type="text/javascript">
function WA_getFormCookie(cookieObj, formObj, cookieName) {
cookieFormFromString(cookieObj,formObj,cookieName);
}
</script>
<script type="text/javascript">
function WA_setFormCookie(cookieObj, formObj, cookieName, expdays) {
if (expdays) {
cookieObj.expires = daysToExpire(expdays);
}
else {
cookieObj.expires = "";
}
cookieFormToString(cookieObj,formObj,cookieName);
}
</script>
Link to the script, Function Get the Cookie, Function Set the Cookie
in the Form onSubmit store the form
<form action="" method="post" name="formRegister" id="formRegister" onSubmit="WA_setFormCookie(WA_CookieObj,document.formRegister,'WAFC_register_formRegister', 1)">
at the end of the form to set the form
<script type="text/javascript">
WA_getFormCookie(WA_CookieObj,document.formRegister,'WAFC_register_formRegister');
</script>
Why are the functions and the link to the script not set automatic?
Cheers,
Denis