title: Set Iframe Source on Remote Page via URL Parameter
body: <p>I have 3 pages that I am working with.</p>
  
  <p><strong>shop_mobile.php</strong></p>
  
  <p>This page retrieves product data from MySQL db and lists formats it.  It accepts the url parameters brand=BRANDNAME and cat=CATEGORY.  </p>
  
  <p>Here are two examples of this page in action:<br>
  <a href="http://solanocycle.com/shop_mobile.php?brand=KYMCO&amp;cat=KYMCO%20Scooters" rel="nofollow noreferrer">http://solanocycle.com/shop_mobile.php?brand=KYMCO&amp;cat=KYMCO%20Scooters</a></p>
  
  <p><a href="http://solanocycle.com/shop_mobile.php?brand=peacesports&amp;cat=Peace%20Sports%20Scooter" rel="nofollow noreferrer">http://solanocycle.com/shop_mobile.php?brand=peacesports&amp;cat=Peace%20Sports%20Scooter</a></p>
  
  <p><strong>vehicles.html</strong></p>
  
  <p>This page contains links to view specific product listings pages (i.e.  "KYMCO Scooters", "Peace Sports Scooters").  When these links are clicked, they should all take the user to the same page (view.html) but pass URL parameters which tell the Iframe within view.html which url to use as its source. </p>
  
  <p><strong>view.html</strong></p>
  
  <p>This page contains an Iframe which gets its source from the URL parameters passed by the links from vehicles.html </p>
  
  <p><em>Note:</em></p>
  
  <p>I tried using the solution provided at <a href="https://stackoverflow.com/questions/7790867/how-do-i-pass-url-parameter-to-an-iframe-in-wordpress-page">How do I pass URL parameter to an iFrame in Wordpress page?</a> to solve my problem, but I have never used jquery before and I was not able to get it working correctly. </p>
  
  <p>Any help would be greatly appreciated.</p>
  
  <p><strong><em>More Info</em></strong> </p>
  
  <p>Sample of a link from Vehicles.html</p>
  
  <p><code>&lt;a href="view.html?http://solanocycle.com/shop_mobile.php?brand=KYMCO&amp;cat=KYMCO%20Scooters"&gt;KYMCO Scooters&lt;/a&gt;</code></p>
  
  <p>What I think View.html should do:</p>
  
  <ol>
  <li><p>Extract "<a href="http://solanocycle.com/shop_mobile.php?brand=KYMCO&amp;cat=KYMCO%20Scooters" rel="nofollow noreferrer">http://solanocycle.com/shop_mobile.php?brand=KYMCO&amp;cat=KYMCO%20Scooters</a>" from the url "view.html?<a href="http://solanocycle.com/shop_mobile.php?brand=KYMCO&amp;cat=KYMCO%20Scooters" rel="nofollow noreferrer">http://solanocycle.com/shop_mobile.php?brand=KYMCO&amp;cat=KYMCO%20Scooters</a>" and store it as a variable called $embedLink.  </p></li>
  <li><p>Display an Iframe with $embedLink as its source url.</p></li>
  </ol>