<form name="form1" method="post" action=""> <label> <input type="text" name="title"> 标题<br> <br> </label> <label> <textarea name="content" cols="50" rows="10"></textarea> </label> 内容 <p> <label> <input type="submit" name="Submit" value="提交"> </label> </p> </form> <? if( $_POST ) { $file='list.txt'; $array = $_POST; $content ="标题:".$array['title'].' 内容:'.$array['content'].chr(13); if( file_exists( $file ) ) { add_write($content); echo '保存成功'; } else { null_write($content); } }<form name="form1" method="post" action=""> <