I used the method for action=edit to pass the value in hidden way to required page.
function editRecord(val)
{
document.getElementById("action")=val;
document.actionEdit.submit();
}
<table>
<tr>
<td><a href='abc.php?cno=<?php echo $data[$i]["no"]; ?>' onclick='return editRecord("edit")' > Number </a> </td>
</tr>
</table>
<form name="actionEdit" id="actionEdit" action="./abc.php?page=xyz" method="post">
<input type="hidden" name="action" id="action" />
</form>
It doesn't submit the action=edit. Where am I wrong?