Ok it seems to want to work but what it dispalys in the iframe is page not found. I called my page studies.php , and in the links I put:
Code:
<a href="mystudies.php?s=study1">Page 1</a>
<a href="mystudies.php?s=study2">Page 2</a>
<a href="mystudies.php?s=study3">Page 3</a>
and in the php quote (which my program already put the <?php ?> tags) I put:
Code:
<?php
if ( (isset($_GET['s'])) && ($_GET['s'] == 'study1') ) { $src = 'https://onedrive.live.com/embed?cid=0912027297A21B07&resid=912027297A21B07%218989&authkey=AD_ol5nd3vdkIvY&em=2&wdStartOn=1&wdEmbedCode=0&wdPrint=0'; }
if ( (isset($_GET['s'])) && ($_GET['s'] == 'study2') ) { $src = 'C:\Users\ASUS\Documents\My Websites\HisCross\Hiscrosstester\Grace.pdf'; }
if ( (isset($_GET['s'])) && ($_GET['s'] == 'study3') ) { $src = 'Grace.pdf'; }
?>
and for the iframe which appears with the links, I put:
Code:
<iframe src="<?php echo $src ;?>"></iframe>
But when I click the links , the pdf files do not show up , even though they are the right file path.
I think we are going in the right direction with this php code just need to get the pdf's tp show, thanks a whole lot.
Bookmarks