HTML代码
<html>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8">
<body>
<form action="d.php" method="post" target="new_iframe">
<input type="text" name="xingming" />
<input type="text" name="haomao" />
<input type="text" name="dizhi" />
<input type="submit" name="nm_submit" value="提交" />
</form>
<iframe id="new_iframe" name="new_iframe" style="display:none;"></iframe>
</body>
</html>
PHP代码
<?
$str=implode($_POST,"|");
file_put_contents("e.txt",$str."\n",FILE_APPEND);
?>
保存在同目录下e.txt