williadn48
Programmer
When the user clicks Stop I want to write to the database with a submit AND redirect to a different page. I have tried various combos of code and nothing is working.
function fncStop(){
frmTIMETRACKING.hdnAction.value = 'Stop';
frmTIMETRACKING.submit();
window.location = 'TaskLogged.asp';}
<FORM action="ECM-Time-Tracking.asp" method=post id=frmTIMETRACKING name=frmTIMETRACKING onSubmit="return fncStop()">
function fncStop(){
frmTIMETRACKING.hdnAction.value = 'Stop';
frmTIMETRACKING.submit();
window.location = 'TaskLogged.asp';}
<FORM action="ECM-Time-Tracking.asp" method=post id=frmTIMETRACKING name=frmTIMETRACKING onSubmit="return fncStop()">