Hi i wish to ask visitors to my page their age and stor it as a cookie for further viists my code goes like this


if document.cookie = " "
then vname =INPUTBOX("Please enter name")
Document.Write "Hello" & " " & vname & " " & "and"
cookie1= vname & ";expires=Wed, 07 Nov 2001 12:00:00 GMT"
Document.Cookie = cookie1
else
cookie2= document.cookie
document.write "Welcom back" & cookie2

end if


Can any one tell me what i am doing wrong, apart from pretending i am a programmer!!!!

Thanks