I have a feedback form and want to take the user name and email address and store it using a cookie for every other time they visit the page here is the function code, this workks for name field but not email..
<Script language = "javascript">
userName =""
if(document.cookie !=""{
userName = document.cookie.split("="[1]
}
function setCookie(){
userName =document.form.From_name.value
document.cookie ="userName="+userName
}
</script>
<body background = "ice03.gif" onLoad ="document.form.From_name.value=userName">
onBlur="setCookie()"
Help please
<Script language = "javascript">
userName =""
if(document.cookie !=""{
userName = document.cookie.split("="[1]
}
function setCookie(){
userName =document.form.From_name.value
document.cookie ="userName="+userName
}
</script>
<body background = "ice03.gif" onLoad ="document.form.From_name.value=userName">
onBlur="setCookie()"
Help please