document.myform.action ... Won't Pass Variable
I am trying to pass the var
delId to AccountDelete.html. It will not pass successfully.
Appreciate any help to fix this!!!
=======================
Code which passes delId:
function OnSubmitForm() {
var Id=<?php echo $rowcopyId; ?>;
if(document.pressed == 'Go Back') {
document.myform.action ="AccountsFrontEnd.php";
}
else
if(document.pressed == 'Delete This Account') {
alert('AccountDelete.html?delId='+Id); THIS SHOWS OK. (Id=111)
document.myform.action='AccountDelete.html?delId='+Id;
}
return true;
}
============================
Code which accepts var delId:
<script type="text/javascript" >
var Name=unescape(getUrlParametersVals()['dname']);
var revId=unescape(getUrlParametersVals()['delId']);
alert("line 16 delId = "+ revId); SHOWS revId as UNDEFINED.
</script>