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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.