a field passed and written to this form, from a previous form:
var loc=""+document.location;
loc = loc.indexOf("?age=")!=-1?loc.substring(loc.indexOf("?age=")+5,loc.length):"";
var age = loc.indexOf("&")!=-1?loc.substring(0,loc.indexOf("&")):loc;
document.write(age);
problem lyes in adding age and new form selection value with the previous form selection (age) onsubmit:
<form name="f2" action="Occupational_Demand.htm" method="GET" onSubmit="var sum = parseInt(document.f1.age.value)+parseInt(document.f2.edu.options[document.f2.edu.selectedIndex].value);
document.location="Occupational_Demand.htm?edu="+sum">
thanks for your input! much appreciated
var loc=""+document.location;
loc = loc.indexOf("?age=")!=-1?loc.substring(loc.indexOf("?age=")+5,loc.length):"";
var age = loc.indexOf("&")!=-1?loc.substring(0,loc.indexOf("&")):loc;
document.write(age);
problem lyes in adding age and new form selection value with the previous form selection (age) onsubmit:
<form name="f2" action="Occupational_Demand.htm" method="GET" onSubmit="var sum = parseInt(document.f1.age.value)+parseInt(document.f2.edu.options[document.f2.edu.selectedIndex].value);
document.location="Occupational_Demand.htm?edu="+sum">
thanks for your input! much appreciated