php不刷新提交的實(shí)現(xiàn)方法:首先創(chuàng)建一個(gè)form表單提交;然后使用iframe實(shí)現(xiàn)不刷新表單提交頁(yè)面,其使用語(yǔ)句是“<iframe id="myiframe" name="myiframe" width="0"></iframe>”。
推薦:《php視頻教程》
提交時(shí)不刷新php,可以不刷新表單提交頁(yè)面嗎?
例如樣品表格
可以使用iframe:
<iframe id="myiframe" name="myiframe" width="0" height="0" frameborder="0"></iframe><form method="post" target="myiframe" action="script.php"> <input type="radio" name="test" value="start">start<br /> <input type="radio" name="test" value="stop">stop<br /> <input type="submit" value="go"></form>