At the generation of the page
<?
$file_array=file("%your file here%");
for ($counter=$minline;$counter<=$maxline;$counter++) {
echo "<input type=\"text\" name=\"inputline[".$counter."]\" value=\"".$file_array[$counter]."\">";
}
?>
When receiving the post
<?
$file_array=file("%your file here%");
for ($counter=$minline;$counter<=$maxline;$counter++) {
$file_array[$counter]=$inputline[$counter];
}
// output $file_array to file something like
$to_file_data=implode("%your line separator char here%",$file_array);
// do $fopen check OS specifics here
$fwrite($fp,$to_file_data);
//close fiel
?>
Saludos
Gerardo