如何避免在页面刷新时插入值. [英] How to avoid inserting values while the page get refreshing,..

查看:57
本文介绍了如何避免在页面刷新时插入值.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在php中,插入的值显示在数据表中.页面刷新时,它会自动插入一行,再次刷新另一行会被插入.我怎么解决这个问题.任何人都可以帮助我..

In php the inserted values are displayed in the data table. while the page get refresh it automatically insert one row, once again refreshing another row is inserted. How can i solve this problem. anyone help me..

推荐答案



从页面顶部删除插入数据的代码,然后将其移至单独的仅代码文件,该文件可以是负责插入过程的操作文件.

谢谢

Anand Ayyappan
Hi,

Remove the code which inserts the data from top of the page and move it to a seperate code only file which can be the action file which takes care of the insertion process.

Thanks

Anand Ayyappan


这篇关于如何避免在页面刷新时插入值.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆