php表单再次刷新发送表单(防止) [英] php form refresh send form again (prevent)
本文介绍了php表单再次刷新发送表单(防止)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
当表单填写并发送时,如果刷新页面,表示表单将再次发送。 (再次提交表格)。
when a form is filled and send, if you refresh the page, its says that the form will send again. (submit the form again).
防止这种情况发生的好方法是什么?或者杀了这个会话?
What is a good way to prevent this from happening? or kill this session?
这方面的任何指导?
谢谢
推荐答案
处理完POST信息后,执行
After processing the POST informations, do a
header('Location: your_url');
exit();
这篇关于php表单再次刷新发送表单(防止)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文