Creating an iframe for inserting a pdf file into the output from my php

I am trying to create an iframe to daisy chain some pdf files for viewing. I have the selection code working but can’t get my file into the iframe. I believe I have escaped the double quotes correctly. The iframe appears but is not populated. I am not sure how to display the escaped double quotes here without being removed.

echo “<iframe src = “”. $fname . “” width=“100%” style=“height:100%”>”;

Try this:

echo '<iframe src="' . $fname . '" width="100%" style="height:100%" ></iframe>' ;

that got me something in th iframe but the first escaped double quotes loaded the root of the site host

Sponsor our Newsletter | Privacy Policy | Terms of Service