php - i want the iframe to show only if -


i have iframe, have embedded onto production site. still working on here iframe table results

the problem don't want 1 see it, wondering there way add link look's like.

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

that way when add &result it'll show iframe below iframe code on page

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

you should below:

 <?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 }?> 

and url should

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

Comments

Popular posts from this blog

Spring Boot + JPA + Hibernate: Unable to locate persister -

go - Golang: panic: runtime error: invalid memory address or nil pointer dereference using bufio.Scanner -

c - double free or corruption (fasttop) -