开发者

open new window in php

<?php

$_SESSION['dsize'] = $_POST['dsize'];
if ($_SESSION['deadline']=="Urgent" )
{
?>
<script type = "text/javascript">

window.open('https://usd.swreg.org/cgi-bin/s.cgi?s开发者_Python百科=104597&p=104597-1&v=0&d=0&q=<?php echo $_SESSION['dsize']?>');
</script>
<?php

}
else
{

?>
<script type = "text/javascript">

window.open('https://usd.swreg.org/cgi-bin/s.cgi?s=104597&p=104597-2&v=0&d=0&q=<?php echo $_SESSION['dsize']?>');
</script>
<?php

}

 header('Location: confirmorder.php');

?>

if i delete the last header line new window is opening but if i use the header line new window does not open and confirmorder.php is opened.

can anyone tell me how to open new window for checkout and send the user to confirmorder page.

Thanks


Maybe you should use Javascript to redirect the client to the page you want.

At the end of the response, you should do something like:

 <script type="text/javascript">
<!--
window.location = "confirmorder.php"
//-->
</script>


Usually in works I use this code

function openNewTap(string $url)
        {
            echo '<script type="text/javascript">';
            echo 'window.open("'.$url.'");';
            echo '</script>';
        }
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜