i am trying for ages but can not get this working.
So far this is working perfect
<?
if ($_POST['newhour_start']!=""&&$_POST['newhour_end']!="")
{
$inserthour = mysql_query("INSERT INTO hour
(hour_start,hour_end,hour_day) VALUES
('".$_POST['newhour_start']."','".$_POST['newhour_end']."','".$_POST['newhour_day']."')");
}
?>
<td colspan="5">
Start:<input name="newhour_start" type="text" id="newhour_start" >
End: <input name="newhour_end" type="text" id="newhour_end" >
<input name="newhour_day" type="hidden" id="newhour_day" value="Monday" >
</td>
My question is how can i add another 5 sets of start and end inputs to this code?
I know i can just add another input names, if statements and change their names but i want to learn the proper way.