<?php
$post = $_POST['reply'];
$file=fopen('reply.txt','w+');
fwrite($file,$post,'9999');
fclose($file);
if($_POST['submit']){
echo '修改完成!';
}else{
echo '修改回复内容:<br><form name="input" action="xg.php" method="post">
<input type="text" name="reply">
<input type="submit" name="submit" value="修改"></from>';
}
?>