Home > Backend Development > PHP Tutorial > 一个添加数据按钮,多次点,页面弹出添加失败,而实际上数据以经添加了。解决办法

一个添加数据按钮,多次点,页面弹出添加失败,而实际上数据以经添加了。解决办法

WBOY
Release: 2016-06-13 10:08:42
Original
1047 people have browsed it

一个添加数据按钮,多次点,页面弹出添加失败,而实际上数据以经添加了。
请问这一种问题怎么处理一下,
是让他们不重复提交表单,
还是怎么做一下,
还请详细一点。

------解决方案--------------------
很简单,看例子


...



只要用戶第一次提交過之後form的action就变为#了,这样就不能第二次提交了.
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template