title: Can I Pass a URL variable to an IFrame using PHP?
body: <p>I've not used PHP much (or at all) before, and I have the following code:</p>
  
  <pre><code>&lt;?php
  $val = $_GET['ID'];
  echo "&lt;iframe src='sitename.com.au/directory/app/pagename.cfm?memberid='$val'    width='100%' scrolling='vertical'&gt;&lt;/iframe&gt;";
  ?&gt;
  </code></pre>
  
  <p>I think that should be ok to take a URL variable and pass it to an Iframe url...my issue is that when I hit the page this is on instead of it being:</p>
  
  <pre><code>http://sitename.com/whats-on?ID=2
  </code></pre>
  
  <p>its</p>
  
  <pre><code>http://sitename.com/whats-on/?ID=2
  </code></pre>
  
  <p>I don't know where that slash before /?ID is coming from - but I believe it is causing my problem - the iframe displaying a page not found message.</p>
  
  <p>Any advice appreciated.</p>
  
  <p>Thanks</p>
  
  <p>Simon</p>