You were also pretty nnegative about my phpBB3 campaign but i hope you see that it is pretty nice now that it is implemented ...
Ok for the cookie problem mvs was handling ...
Why can't you go for the same idea as the login code but with an autosafe drafts function?
- Code: Select all
// Function to remember the login details in a cookie.
// Get the login data.
var username = document.getElementById('txtUsername').value;
var password = document.getElementById('txtPassword').value;
// Remember the cookie for 100 days from now.
var date = new Date();
date.setTime( date.getTime() + (8640000000) );
// Set the cookie.
document.cookie = "Username=" + username + "; expires=" + date.toGMTString() + "; path=/";
document.cookie = "Password=" + password + "; expires=" + date.toGMTString() + "; path=/";
' Read and set the username and password from the cookies.
If IsNothing(Request.Cookies("Username")) = False Then txtUserName.Text = Request.Cookies("Username").Value
If IsNothing(Request.Cookies("Password")) = False Then txtPassword.Text = Request.Cookies("Password").Value
In this cookie you would have to change the variables to of the username and password to certain fields.
It also has an autorestore function and you can re"call" your work as the get the log in date function works ...
MVS ... Tomorrow i'll be back, for now i did this just on a huge amount of duvel (the beer i said you had to take in brussels) I will be back when sober