catchup
07-02-2003, 11:23 PM
the alert properly display the "data" value but the "data" value won't add to the end of the URL:
var sum = parseInt(document.f1.age[j].value)
var data = ",(age="+sum+")";
document.f1.action="Education.htm?age="+sum+data;
alert (data)
the alert displays: ,(age="10") ///using 10 as a numeric form option value example
the url displays only: Education.htm?age=10
why doesn't the url display: Education.htm?age=10,(age="10")
var sum = parseInt(document.f1.age[j].value)
var data = ",(age="+sum+")";
document.f1.action="Education.htm?age="+sum+data;
alert (data)
the alert displays: ,(age="10") ///using 10 as a numeric form option value example
the url displays only: Education.htm?age=10
why doesn't the url display: Education.htm?age=10,(age="10")