提交到服务器,用file_put_contents写入html文件中,如果你是要给客户端保存,直接输出提交的内容,设置下content-disposition响应头为attachment实现弹出保存对话框
http://www.w3school.com.cn/php/func_filesystem_file_put_contents.asp
header('content-disposition:attachment;filename="xxx.html"');
ob_end_clean();
echo $_POST["提交的键名称"];