Your in luck today.
Here it is, the complete solution in one little script.
HalfaBee
<?
if( isset( $_POST['submit'] ) )
{
$fp = fopen( 'times.txt' , 'w' );
for( $i=0;$i<7;$i++ )
{
fwrite( $fp , $_POST['opentime'][$i].'|'.$_POST['closetime'][$i]."\n" );
}
fclose( $fp );
}
// times.txt contains open close times 8:00|18:00
// each line is a new day sunday = first line
$t = file( 'times.txt' );
foreach( $t as $s )
$times[] = explode( '|' , $s );
?>
<!doctype html public "-//W3C//DTD HTML 4.0 //EN">
<html>
<head>
<title>Title here!</title>
</head>
<body>
<TABLE>
<FORM method='post' >
<?
$day = array( 'Sunday','Monday','Tuesday','Wednesday','Thursday','Friday','Saturday' );
for( $i=0;$i<7;$i++ )
{
echo "<TR><TD>{$day[$i]} Open </td><td><input type=text name=opentime[$i] value='{$times[$i][0]}'></TD>";
echo "<TD> Close </td><td><input type=text name=closetime[$i] value='{$times[$i][1]}'></TD></TR>\n";
}
?>
<TR><TD><input Type='submit' name='submit' value='submit' ></TD></TR>
</FORM>
</TABLE>
</body>
</html>