gunner
01-20-2003, 02:09 AM
age field value number is from form1, and was sent to form2 via the url. I've decoded the url and used document.write to display the number on the page of form2.
I'm having a problem adding age number(from form1) to edu number value selection, from form2, to get a non cancatenated(sp?) number, like 4+5=9, NOT 4+5=45
this is what i've been working on, with many troubles and hardships, i was wondering is someone could ease the pain?:
<form name="form2" action="Occupational_Demand.htm" method="GET" onsubmit=var sum = parseInt(document.form1.age.value)+parseInt(document.form2.edu.options[document.form2.edu.selectedIndex].value);
document.location="Occupational_Demand.htm?edu="+sum">
the goal is to add the numbers and send them via url to the next form, but so far no luck. I don't want to stray from what i have; to use hidden fields, or use fames. Thanks
I'm having a problem adding age number(from form1) to edu number value selection, from form2, to get a non cancatenated(sp?) number, like 4+5=9, NOT 4+5=45
this is what i've been working on, with many troubles and hardships, i was wondering is someone could ease the pain?:
<form name="form2" action="Occupational_Demand.htm" method="GET" onsubmit=var sum = parseInt(document.form1.age.value)+parseInt(document.form2.edu.options[document.form2.edu.selectedIndex].value);
document.location="Occupational_Demand.htm?edu="+sum">
the goal is to add the numbers and send them via url to the next form, but so far no luck. I don't want to stray from what i have; to use hidden fields, or use fames. Thanks