Friday, January 17, 2003 03:15 AM
1. First of all the method shoud be document.location="Education.htm?age="+document.f1.age.value...
document.write("<%= request.getParameter("age") %>")
loc = loc.indexOf("?age=")!=-1?loc.substring(loc.indexOf("?age=")+5,loc.length):"";
var age = loc.indexOf("&")!=-1?loc.substring(0,loc.indexOf("&")):loc;
2.I guess what you need to do is to get a selected value in education.htm, add this to the age and then pass it on to the next page (or is it in the same page?). If it is in the next page you will have to pass the value either as a parameter like
var sum = document.f1.age.value+document.f1.select1.options[document.f1.select1.selectedIndex].value;
or you can have a hidden filed in this form and set the value of this and submit.
In case you need to change this in the same page you need to have this value displayed within a DIV and change the content of the DIV in the onchange of the select.