I want to get the value depending on the check box checked. In Form action method" such that <Form action = importP2.php or importP3.php on click "SUBMIT" button.
HTML
<input type="checkbox" name="param[]" value="SH" id="SH" onclick="selectionListener();" />
<label for="SH">Synoptic Hour</label>
<br />
<input type="checkbox" name="param[]" value="DS" id="DS" onclick="selectionListener();" />
<label for="DS">Days Summery</label>
form action = " " method="post" onsubmit = ". SelectionMade ." enctype="multipart/form-data"
Script
function selectionListener() {
checkedStr = '';
if (document.getElementById('SH').checked)
{ checkedStr = "importP2.php"; }
if (document.getElementById('DS').checked)
{ checkedStr = "importP3.php"; }
document.getElementById('SelectionMade').value = checkedStr;
}