//提交

    $("input[type='button']").eq(1).click(function () {

        var data=$("#form").serialize();

        var url=$("#form").attr('action');

//        alert(data);return false;

        $.ajax({

            type:'post',

            url:url,

            data:data,

            success:function (msg) {

                if(msg=='false'){

                    alert("注册失败");

                    return false;

                }

                alert("注册成功");

                location.href="http://127.0.0.1/index1.php";

            }

        })

    })

相关文章:

  • 2021-11-25
  • 2021-10-15
  • 2021-12-23
  • 2022-01-17
  • 2021-07-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-11-09
  • 2022-12-23
  • 2021-11-12
  • 2021-10-08
  • 2022-01-22
  • 2021-07-17
  • 2022-01-04
相关资源
相似解决方案