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

WBOY
Release: 2016-06-02 11:29:03
Original
3527 people have browsed it

phphtml表单

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

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

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

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