gpt4 book ai didi

php - 我希望 iframe 仅在以下情况下显示

转载 作者:行者123 更新时间:2023-11-27 23:25:25 24 4
gpt4 key购买 nike

我有一个 iframe,我已将其嵌入到生产站点中。我还在努力here is the iframe the table with results

问题是我不想让任何人看到它,所以我想知道是否有任何方法可以向链接添加一些内容。

http://www.chessbook.net/ZULUTESTINGSITE/index.php?option=com_chess&id=350**&result** 

这样只有当我添加 &result 时它才会显示 iframe下面是页面上的iframe代码

<div>
<iframe src="http://users.hellzoneinc.com/eric258/preview.php" width="50%"
height="300" scrolling="auto" frameborder="0" name="results">
</iframe>
</div>

最佳答案

你应该做如下的事情:

 <?php if(isset($_GET['result']) OR $_GET['result'])=='Your_SOME_VALUE'){?>
<div>
<iframe src="http://users.hellzoneinc.com/eric258/preview.php" width="50%" height="300" scrolling="auto" frameborder="0" name="results"> </iframe>
</iframe>
</div>
<?php }?>

你的网址应该是

http://www.chessbook.net/ZULUTESTINGSITE/index.php?option=com_chess&id=350&result=Your_SOME_VALUE

关于php - 我希望 iframe 仅在以下情况下显示,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38826685/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com