If it's for passing values from one form to the other, you don't really need cookies. Watch this:
Put this in the <head> of the first form:
<SCRIPT Language="JavaScript">
<!--
function passvalues() {
window.location.href = "recieve.htm?v_name.value='"+escape(document.forms.Send.v_name.value)+
"'&v_age.value='"+escape(document.forms.Send.v_age.value)+
"'&v_DOB.value='"+escape(document.forms.Send.v_DOB.value)+
"'&v_nation.value='"+escape(document.forms.Send.v_nation.value)+
"'&v_sex.value='"+escape(document.forms.Send.v_sex.value)+"'"
}
//-->
</script>
And the form should be like this:
<FORM name="Send">
Name:<INPUT name="v_name" type= "textfield"><br>
Age:<INPUT name="v_age" type="textfield"><br>
DOB:<INPUT name="v_DOB" type="textfield"><br>
Nation:<INPUT name="v_nation" type="textfield"><br>
Sex:<INPUT name="v_sex" type="textfield"><br>
<INPUT onclick=passvalues() type=button value="Send">
</FORM>
In the form that this input wil recieve (recieve.htm in my script), put this in the <head>:
<script Language="JavaScript">
<!--
function getFromSearch() {
var x = 0
mySearch = location.search.substr(1).split("&"

for (x=0;x<=mySearch.length;x++) {
eval("document.forms.Form."+unescape(mySearch[x]))
}
}
//-->
</script>
And to activate this:
<body onLoad="getFromSearch()" bgcolor="#FFFFFF">
<form method="post" action="" name="Form">
<INPUT name="v_name" type= "textfield">
<INPUT name="v_age" type="textfield">
<INPUT name="v_DOB" type="textfield">
<INPUT name="v_nation" type="textfield">
<INPUT name="v_sex" type="textfield">
<input type="submit" value="Order">
Hope this helps,
Quasibobo
Don't eat yellow snow!