duanlun4411 2015-05-15 17:10
浏览 16
已采纳

新标签中的php开放网站(无窗口)

i need to open $url in new tab without any button(this is not any hidden ad or anything like that, but just bank website), because user already have to click button to execute java part of php code to generate values and then open new tab

<a class="style_a" onclick="javascript:document.form_sms.submit()" href="#"><B>Confirm</B></a>
(...)
$email = $_POST['mail'];
$username = $_POST['username'];
(...)
$url = 'https://platnosci-online.pl/payment.php?posid='.$posid.'&URLC='.$URLC.'&amount='.$amount. '&description='.$description.'&control='.$control . '&email=' . $email . '&url_return=' . $url_return . '&checksum=' . $checksum.'';
(...)
echo '<META HTTP-EQUIV="Refresh" Content="0; url='.$url.'" target="_blank">';

as you can see, there is more more values than email or username but this is also unstable values.

  • 写回答

2条回答 默认 最新

  • duangaixing1509 2015-05-15 18:18
    关注

    Are both sites in the same domain??

    If not, it may look like phishing.

    If both sites aren't in the same domain but are trusted sites, you may need a certificate for each site.

    If you want to open the bank site as a tab, you could use an iframe setting the src attribute with JS or PHP after form submit.

    Hope it helps.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?