 <form action="" method="post">
<table width="100%" border="0" cellpadding="3" cellspacing="0">
  <tr class="row1">
    <td width="20%" align="right">From Month</td>
    <td width="20%"><input type="text" value="<?php if(isset($_REQUEST['fromDate']))echo $_REQUEST['fromDate']?>" name="fromDate" class="datepicker"  /></td>
    <td width="20%" align="right">To Month</td>
	<td width="20%"><input type="text" name="toDate" value="<?php if(isset($_REQUEST['toDate'])) echo $_REQUEST['toDate']?>" class="datepicker"  /></td>
	<td></td>
 </tr>
 <tr class="row1">
	<td colspan="5" style="text-align:center;"><input type="submit" name="search" value="Search" class="search" /></td>
  </tr>
</table>
</form>
<?php 
if($_REQUEST['search']=='search')
{
	//"select sum()" 
}
?>
<br>
 <table width="100%" border="0" cellspacing="0" cellpadding="3" class="thborder">
  <tr>
    <th>Ledger Name</th>
    <th width="12%" style="text-align:center;">Debit Amount</th>
    <th width="12%" style="text-align:center;">Credit Amount</th>
  </tr>
	<tr>
		<td><?php echo $row2['GroupName'] ?></td>
		<td style="text-align:right;">&nbsp;</td>
		<td style="text-align:right;">&nbsp; </td>
	</tr>
</table>
