form提交成功后如何实现后续操作

form表单提交完成后会自动跳转打开空白页,那要如何实现我的后续操作呢,比如新打开一个页面显示用户刚刚提交的信息

<form action="AnomyIris_demo/formcollect.txt" method="post" >
        账号:<input type="text" id="user"> <br>
        邮箱:<input type="text" id="email"> <br>
        <input type="submit" onclick="return check()" >
    </form>

function check()
        {
            var user=document.getElementById("user").value;
            if(user.length<3)
                {
                    alert("用户名至少由三位构成!");
                    return false;
                }
            var email=document.getElementById("email").value;
            var p1=email.indexOf("@");
            var p2=email.indexOf(".");
            if(p1==-1||p2==-1)
                {
                    alert("email格式不正确");
                    return false;
                }
            return true;
        }

check返回true后把2个参数传给 action="AnomyIris_demo/formcollect.txt",后台处理后,返回结果。
这个路径.txt不合适哈。

你应该通过action发送数据到后台,也就是服务器,然后通过后台语言进行处理,再给浏览器respones响应,把你的结果响应过去

form表单提交后一般在弹窗中提交数据,提交成功后,关闭弹窗