Если можите сбросьте скрипт *admin.php* <form name="form1" method="post" action="file.php"> <input name="$id" type="text"> <input type="submit" name="Submit" value="del"> </form> <?php $filename = "clio3.txt"; $delitmer = "%20"; $shablon = ' <table width="320" border="1" class="index"> <tr> <td>Дата замовлення:</td> <td width="150">Прізвище:</td> <td>Ім’я:</td> <td>По батькові: </td> <td>Контактний телефон:</td> </tr> <tr> <td>%data%</td> <td>%prz%</td> <td>%username%</td> <td>%bat%</td> <td>%tel%</td> </tr> </table> <br>'; $data = @file($filename); foreach($data as $val) { list($nam, $data, $prz, $username, $bat, $tel, $come) = explode($delitmer, trim($val)); $tmp_message = str_replace("%nam%", $nam, $shablon); $tmp_message = str_replace("%prz%", $prz, $shablon); $tmp_message = str_replace("%username%", $username, $tmp_message); $tmp_message = str_replace("%bat%", $bat, $tmp_message); $tmp_message = str_replace("%tel%", $tel, $tmp_message); $tmp_message = str_replace("%data%", $data, $tmp_message); $tmp_message = str_replace("%come%", $come, $tmp_message); echo $tmp_message; } ?> *file.php* <? function kill_line_from_file($inf, $line) { $fcont = file ($inf); array_push ($fcont, "clio3.txt"); $fp = fopen($inf, 'w'); $i = 0; while ($fcont[$i] != "clio3.txt") { if ($line-1 != $i) fputs($fp, $fcont[$i]); $i++; } fclose($fp); } ?>