I use a script to copy forms from one page to the other. It works so far that it indeed copies the variables and on the last page all the input is collected. However, then when i sent it, the variables doesnt seem to exist. Only the input fields on that page is being sent though the input from former pages is filled in in the inpyt fields. Can someone tell me how to sent the other variables as well. It looks as if they are copied but somehow not initiated or something.


HTML>
<HEAD>
<TITLE>MyForm resultaten</TITLE>
<STYLE>
.save { behavior:url(#default#userdata)};
BODY{font-family : "Comic Sans MS" Technical,"Times New Roman", serif}</STYLE>
<SCRIPT>
//This will save any named attributes in the form myForm
//Assumes unique names
function SaveIt() {
//Create a collection of INPUT elements on the form
oColl = myForm.tags("input");
//Loop through and save them as name, value pairs
for (i = 0; i < oColl.length; i++) {
//Make sure the element has a name
if (oColl[i].name != "")
myForm.setAttribute(oColl[i].name, oColl[i].value);
}
//Now save the data
myForm.save("mydata");
}

function RestoreIt() {
//Load the persisted data
myForm.load("mydata");
//Walk through the form and set the values
oColl = myForm.tags("input");
for (i = 0; i < oColl.length; i++) {
//Make sure the element has a name
if (oColl[i].name != "") {
temp = myForm.getAttribute(oColl[i].name);
if (temp)
//Set the value
oColl[i].value = temp;
}
}
}
</SCRIPT>
</HEAD>
<body onload="RestoreIt()" onunload="SaveIt()" background="back.gif">

<FORM METHOD="post" ACTION="http://psych.fullerton.edu/cgi-win/polyform.exe/generic" NAME="myForm" CLASS="save" >

<br>
<INPUT NAME="vraag1" SIZE="8"><br>
<INPUT NAME="vraag2" SIZE="8"><br>
<INPUT NAME="vraag3" SIZE="8"><br>
<INPUT NAME="vraag4" SIZE="8"><br><br>
Hoe oud ben je? <input name="leeftijd" size="8"><br>
<textarea></textarea><br><br>
<input type="submit" value="versturen"
</FORM>



</BODY>
</HTML>