I have a piece of code (CURL) from which I can extract data like this:
  <?php
    $url = "http://www.nu.nl/";
    $ch = curl_init($url);
    curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
    $curl_scraped_page = curl_exec($ch);
    curl_close($ch);
    echo $curl_scraped_page;
    ?>
I also have a HTML file with an input. I would like to replace the physical URL with a dynamic one, so setting it as a variable. The variable should be the value of the input which is in the parent document. So the php file is echoed in an iframe. Is this possible? I have Googled and search Stack but I only found this answer: LINK Which I could not alter to want I want. (I'm new at PHP)
 
     
    