-
I would like to set one cookie with multiple variables that i can later parse. how would i do this?
with javascript i'm currently doing:
<BLOCKQUOTE><font size="1" face="Verdana, Arial">code
/font><HR><pre>
var variable_1 = document.form1.name.value
var variable_2 = document.form1.id.value
var variable_3 = document.form1.address.value
:
:
:
:
:
document.cookie = "name=" + variable + ":" + "id=" + variable_2 + ":" + "address=" + variable_3 + ";expires=01-13-2001"
:
:
:
:
:
[/code]
what am I doing wrong?! it doesn't work...rather, it sets the cookie, but the expires doesn't work...so now what?
is there another way to do this?
- sam
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
Bookmarks