<?php
$fp=fopen("my.txt","a");
$str="$username $password\n";//希望写入文件后换行。
fwrite($fp,$str);
fclose($fp);
echo "添加成功!是否继续?<a href=add.html>添加</a>"
?>