In my php page, I want to call another URL for the user depending on other values. My code will now go to the new page, but I need to click on the message
You are being redirected. // //
Then it will go to the proper page. How do I call the new page and not get this message ? Here is my code so far.
<?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
}
?>