danblack30
MIS
Hi All,
I've come across the need to have a single checkbox supply values to 2 hidden form fields to submit to the database.
I've come across the need to have a single checkbox supply values to 2 hidden form fields to submit to the database.
Code:
<script language="JavaScript">
var temp
var vari1active
var variFin_Date
function finished()
{
if (form1.temp.checked == true)
{
vari1active = 1;
variFin_Date = now();
}
}
</SCRIPT>
<td><input name="temp" type="checkbox" id="temp" onclick="finished()" /></td>
<input type="hidden" name="Fin_Date" value="variFin_Date">
<input type="hidden" name="Active" value="vari1active">\
[code]
I'm sure I've butchered this code and I'm mixing up javascript and vbscript. Help Plz!!