Jump to content

PHP and iframe


ifis

Recommended Posts

I'm trying to pull up an external website within my iframe, but the address has a varaible in it ($FILE) that is messing it up.  It works in straight HTML; is there anyway to get this to work easily?

  <?php
  $read=$_GET['read'];
  switch($read)
  {
  case 'AC61-25f':
  echo "<iframe src='http://rgl.faa.gov/Regulatory_and_Guidance_Library/rgAdvisoryCircular.nsf/0/c9461c4231acdc7d86256f1c006f8fce/$FILE/ac60-25f.pdf'
frameborder='no' width='100%' height='680'></iframe>";
break;
case 'Learning Statement Reference Guide':
echo "<iframe src='http://www.faa.gov/education_research/testing/airmen/media/LearningStatementReferenceGuide.pdf'
frameborder='no' width='100%' height='680'></iframe>";
break;
default:

thanks

Link to comment
https://forums.phpfreaks.com/topic/106111-php-and-iframe/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.