Home  >  Article  >  Backend Development  >  php-html 表单提交之后页面不跳转

php-html 表单提交之后页面不跳转

WBOY
WBOYOriginal
2016-06-02 11:29:033521browse

phphtml表单

form标签中action属性为一个php文件,使用post方法进行参数传递,我想做到的是 表单提交之后,php接受到post的内容进行处理,html页面不跳转,后台处理好了之后,前段alert一下就可以了。
这个咋做?

function saveReport() { $("#showDataForm").ajaxSubmit(function (message) { alert("发生成功"); }); return false; }

这样的话php那边$_POST['']就报错

Statement:
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