M
Microsoft_Public
All I'm getting is <null>......
I have a legacy input form that I must maintain for a few more months until
the balance of the site can be converted to .Net.
I need the one database field to contain either 0, 1, 2.
The form has 2 pairs of radio button fields.
If the answer to the first Q is Yes value = 1
then add the result of the 2 pairs of input options
is assigned to the "Hidden" input field.
If the first ans is No value = 0
and that value is assigned to the "Hidden" input field.
..... snipit, code omitted....
&& validReplace(document.forms[0].APPLICANT_EXIST_INSUR,
document.forms[0].APPLICANT_REPLACE_INPUT);
}
..... code omitted....
function validReplace(formField1, formField2)
{
var existIns = formField1.value;
var replace = formField2.value;
if(existIns = "0") {
APPLICANT_REPLACE.value == existIns;
} else {
APPLICANT_REPLACE.value == (existIns ++ replace);
}
return APPLICANT_REPLACE;
}
...... code omited....
<td>Do you have existing insurance policies?</td>
<td align=right valign=top>
<table border=0 cellspacing="0" cellpadding="0">
<tr>
<td valign=middle><input type="radio"
name="APPLICANT_EXIST_INSUR" value="1"></td><td>Yes </td>
<td><input type="radio" name="APPLICANT_EXIST_INSUR"
value="0"></td><td>No </td>
</tr>
</table>
</td>
</tr>
<tr><td colspan=2 bgcolor=#000000><img src="images/clear.gif"
height=1 border=0></td></tr>
<tr>
<td>Are you planning on replacing any insurance policies?</td>
<td align=right valign=top>
<table border=0 cellspacing="0" cellpadding="0">
<tr>
<td valign=middle><input type="radio"
name="APPLICANT_REPLACE_INPUT" value="1"></td><td>Yes </td>
<td><input type="radio" name="APPLICANT_REPLACE_INPUT"
value="0"></td><td>No </td>
</tr>
</table>
<input type="hidden" name="APPLICANT_REPLACE" value="">
</td>
I have a legacy input form that I must maintain for a few more months until
the balance of the site can be converted to .Net.
I need the one database field to contain either 0, 1, 2.
The form has 2 pairs of radio button fields.
If the answer to the first Q is Yes value = 1
then add the result of the 2 pairs of input options
is assigned to the "Hidden" input field.
If the first ans is No value = 0
and that value is assigned to the "Hidden" input field.
..... snipit, code omitted....
&& validReplace(document.forms[0].APPLICANT_EXIST_INSUR,
document.forms[0].APPLICANT_REPLACE_INPUT);
}
..... code omitted....
function validReplace(formField1, formField2)
{
var existIns = formField1.value;
var replace = formField2.value;
if(existIns = "0") {
APPLICANT_REPLACE.value == existIns;
} else {
APPLICANT_REPLACE.value == (existIns ++ replace);
}
return APPLICANT_REPLACE;
}
...... code omited....
<td>Do you have existing insurance policies?</td>
<td align=right valign=top>
<table border=0 cellspacing="0" cellpadding="0">
<tr>
<td valign=middle><input type="radio"
name="APPLICANT_EXIST_INSUR" value="1"></td><td>Yes </td>
<td><input type="radio" name="APPLICANT_EXIST_INSUR"
value="0"></td><td>No </td>
</tr>
</table>
</td>
</tr>
<tr><td colspan=2 bgcolor=#000000><img src="images/clear.gif"
height=1 border=0></td></tr>
<tr>
<td>Are you planning on replacing any insurance policies?</td>
<td align=right valign=top>
<table border=0 cellspacing="0" cellpadding="0">
<tr>
<td valign=middle><input type="radio"
name="APPLICANT_REPLACE_INPUT" value="1"></td><td>Yes </td>
<td><input type="radio" name="APPLICANT_REPLACE_INPUT"
value="0"></td><td>No </td>
</tr>
</table>
<input type="hidden" name="APPLICANT_REPLACE" value="">
</td>