from表单实现无调回刷
( 更新:10-02 加入收藏)
<!DOCTYPE HTML>
<html>
<head>
<title>测试搜索</title>
<meta charset="utf-8">
</head>
<body>
<form action="./ce.php" method="POST" target="ceshi">
<input name="name">
<button type="submit">搜索</button>
</form>
<iframe name="ceshi" style="display:none"></iframe>
</body>
</html>
Php:
<?php
echo '<script>alert("提交成功")</script>';
上一篇:php输出格式化json
下一篇:php实现下载并解压zip