doing this client side, I have form 1 sending its value to form 2. On form 2 i have,
<head>
<script type=”text/javascript”>
<!– Begin
window.onload = updateRunningScore;
function updateRunningScore(){
var sStr = document.location.search;
val = parseInt(sStr.substring(sStr.indexOf(“=”)+1,sStr.length));
document.getElementById(“currentScore”).innerHTML = “Your score up to this point is = “+((!isNaN(val))?val:0);
document.f2.age.value = val;
}
// End –>
</script>
<body>
<input type=”hidden” name=”age” value=””>
so my form 3 url after form 2 submits is Occupational_Demand.htm?age=10&edu=20 ///exactly what i want it to be, 10 and 20 are the choosen values.
now on submit of form 3 i’m trying to have the form4 url just extend the string to include the form3 value pair, like so:
Guaran.htm?age=10&edu=20&occ=14
but i keep losing it:
Guaran.htm?age=10&edu=NaN&occ=14
would appreciate some direction, thanks
this is what i have so far:
<script type=”text/javascript”>
<!– Begin
window.onload = updateRunningScore;
function updateRunningScore(){
var sStr = document.location.search;
val = parseInt(sStr.substring(sStr.indexOf(“=”)+1,sStr.length));
va2 = parseInt(sStr.substring(sStr.indexOf(“edu=”)+1,sStr.length));
document.getElementById(“currentScore”).innerHTML = “Your score up to this point is = “+((!isNaN(val))?val:0);
document.f3.age.value = val;
document.f3.edu.value = va2;
}
// End –>
</script>
</head>
<body>
<input type=”hidden” name=”age” value=””>
<input type=”hidden” name=”edu” value=””>
BTW, i’m working of the addition of the string values for the “currentScore”.