一个form两个post冲突问题

WBOY
Release: 2016-06-23 13:46:43
Original
1249 people have browsed it

请问下 一个表单 我做了两个按钮 两次post
 然后按第一个按钮后 出现一个表格 thinkphp分页 点了下一页之后 
另一个按钮post就没效果了  
firebug看还是进入了第一个按钮的post地址 要怎么解决 


回复讨论(解决方案)

按钮直接提交的地址就是form表单的action里的地址,两个按钮你可以用js控制提交

按钮直接提交的地址就是form表单的action里的地址,两个按钮你可以用js控制提交



function collectForm(fromId,actionUrl)
{
document.getElementById(fromId).action=actionUrl;
document.getElementById(fromId).submit();
}
我是js控制的 两个按钮来回点都可以  但是我的有个按钮能生成表格  有上下页  点了 上下页按钮就会影响 另一个按钮不能用
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