【发布时间】:2018-12-19 06:13:46
【问题描述】:
在我的 php 页面中,我想根据其他值为用户调用另一个 URL。 我的代码现在将转到新页面,但我需要点击消息
您正在被重定向。 // //
然后它将转到正确的页面。 如何调用新页面而不收到此消息? 到目前为止,这是我的代码。
<?php
require_once 'libs/Mobile_Detect.php';
$detect = new Mobile_Detect;
if ($detect->isMobile() )
{
$url = $_GET["link2"];
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_HEADER, 0);
$result = curl_exec($ch);
curl_close($ch);
}
else{
// "desktop";
?> <h1><?php echo $_GET["title"]; ?></h1>
<iframe src='<?php echo $_GET["link"]; ?>' frameborder="1"
width="1311px" height="800px"></iframe>
<?php
}
?>
【问题讨论】: