Hi all,
I have a HTML doc consiting of 2 frames.
On is called supsidebar.php which consists of menu like hyperlinks.
Another is called supdetails.php which is the content area. It holds a form containing a dropdown box.
The pronlem is I am trying to submit the form on the supdetails.php page by activating the submit hyperlinks on the supsidebar.php page.
The address bar shows http://localhost/lms/href="javascript:callPHPpg();" and a page not found error is displayed.
Here is part of my codes for the supsidebar.php
<SCRIPT LANGUAGE =\"javaScript\">
function callPHPpg(where){
alert(\"where\");
parent.mainFrame.document.superv_pg.action = where;
parent.mainFrame.document.superv_pg.submit();
}
</SCRIPT>
<tr>
<td><a href=href=\"javascript:callPHPpg('lv_approval.php');\" target=\"_parent\"><img src=\"Images/button%20blackline/ApproveLeave.png\" width=\"135\" height=\"33\" border=\"0\"></a></td>
</tr>
<tr>
<td><a href=\"javascript:callPHPpg('transactions.php');\" target=\"_parent\"><img src=\"Images/button%20blackline/Transactions.png\" width=\"135\" height=\"33\" border=\"0\"></a></td>
</tr>
mainFrame is the content page while leftFrame is the supsidebar.php.
Can any kind sould tell me what went wrong? Thanks