<form name="formadd" action="">
First name: <input type="text" name="FirstName" value="Bill" /><br />
Last name: <input type="text" name="LastName" value="Gates" /><br />
<input type="button" value="保存" class="tianjia"/>
</form>
jquery:
<script>
$(function (){
$(".tianjia").click(function (){
$.post("daili.php?act=postaddactivewl",$('[name=formadd]').serialize(),function (data){
alert(data);
},"text");
});
});
</script>
php服务端:
print_r($_POST['FirstName']);