I want to add the items from a DROPDOWN LIST and a TEXTBOX into a cell in a table.
Can anybody help me out?
My current codes that insert the items from DROPDOWN LIST and a TEXTBOX into cell in table.
<?php
if(isset($_POST['btnAdd'])){
if(!empty($_POST['emID']) & !empty($_POST['EName']) & !empty($_POST['OT_RATE']) & !empty($_POST['day_from']) & !empty($_POST['month_from']) & !empty($_POST['year_from']) & !empty($_POST['StartTime']) & !empty($_POST['EndTime']) & !empty($_POST['reason']))
{
echo '<tr bgcolor="#FFFFD7" bordercolor="#FFFFD7">
<td><script language="text\javascript>document.HODApplyfrm.emID.options[document.HODApplyfrm.emID.selectedIndex].text</script></td>
<td><script language="text\javascript>document.HODApplyfrm.EName.value</script></td>
<td></td>
<td align="center"><input type="checkbox" name="delete[]"></input></td>
</tr>';
echo '</table>';
}
}
?>
Apart from this, I would like to add the selected items(dropdown list) and a texbox item to my database.