如何保持在同一页面上并自动打开新选项卡


How can I stay on same page and open a new tab automatically

<?php 
error_reporting(E_ALL);
$name=$_GET['name'];
$email=$_GET['email'];
$key=$_GET['key'];
 ?>
<!DOCTYPE HTML>
<html>
    <head>
        <title></title>
        <link rel="shortcut icon" href="favicon/favicon.ico" type="image/x-icon">
        <link rel="icon" href="favicon/favicon.ico" type="image/x-icon">
        <script type="text/javascript">
            function formAutoSubmit () {
            var frm = document.getElementById("myform");
            frm.submit();
            }
            window.onload = formAutoSubmit;
            </script>
    </head>
<body>


 <form method='POST' id="myform" action='https://www.example.com/cgi-bin/arp3/arp3-formcapture.pl'>
                        <input type='hidden' type='text' name='first_name' value='<?php echo $name ?>' size='20'>
                        <input type='hidden' type='text' name='email' value='<?php echo $email; ?>' size='20'>
                        <input type='hidden' name='subscription_type' value='E'><div align='center'><center>
                        <input type='hidden' name='id' value='3'>
                        <input type='hidden' name='extra_ar' value=''>
                    <input type='hidden' type='submit' value='Please click here to complete signup process' >
                    </form>
    <?php include 'login/js/main_js.php'; ?>
</body>

我正在尝试自动提交表单,并且还想使用给定的 url 从同一页面自动打开一个新选项卡或窗口。我正在尝试做的是,当此页面打开一个表单时,将表单提交给自动考虑,并打开一个新页面以激活用户帐户请帮忙

function formAutoSubmit () {
            var frm = document.getElementById("myform");
            frm.submit();
            window.open("http://google.com"); // Or pass any other URL
            }