WHen the user add an item to the table, the page will refresh with the latest addon to the previous items in the table.
How can I do this?
My current code only refresh the page with the item added only....and not the previous items with the newly added item.
Below are some of my extracted code which may be useful.
<form method="GET" action="<? echo $_SERVER['PHP_SELF']?>" name="HODApplyfrm">
<input type=submit name="btnAdd" id="btnAdd" value="Add" style="BACKGROUND: #B1724B; BORDER-BOTTOM: #444444 2px solid; BORDER-LEFT: #444444 2px solid; BORDER-RIGHT: #444444 2px solid; BORDER-TOP: #444444 2px solid; CURSOR: hand; FONT-FAMILY: verdana,arial,helvetica;color:#FFFFFF;font-weight:bold;HEIGHT: 25px; WIDTH: 100px">
<?php
if(isset($_GET['btnAdd']))
{
echo '<tr bgcolor="#FFFFD7" bordercolor="#FFFFD7">
<td><font size="2.5">'.$_GET['emID'].'</font></td>';
$query4 = "SELECT Emp_Name,Position FROM employee WHERE Emp_ID='".$_GET['eName']."'";
$result4= mysql_query($query4);
while($row4 = mysql_fetch_array($result4,MYSQL_NUM)){
echo '<td><font size="2.5">'.$row4[0].'</font></td>';
echo '<td><font size="2.5">'.$row4[1].'</font></td>';
}
echo '<td align="center"><input type="checkbox" name="delete[]"></input></td>
</tr>
</table>';
} ?>
Can anybody help me out please.....thank you....