Jump to content

Assigning IFRAME page to a variable/string?


newbiedude

Recommended Posts

I'm curious to know if I can assign an IFRAME source to a string/variable.

 

I have a page that has an IFRAME in it

 

    <iframe

        id=\"ListFrame1\"

        name=\"ListFrame1\"

        style=\"width:900px; height:300px; border:1px\"

        src=\"http://www.news.com\">

      </iframe>

 

 

and after the IFRAME is loaded, I want to:

 

    $iframesource = file_get_contents(ListFrame1);

 

 

so I can write a function to parse the $ifreamsource string data and then reload or display another IFRAME pending what was found.

 

Note: I know that you can just do a get contents on the remote location or use CURL, but I want to get this working with an IFRAME for other possibilities later.

 

Can you help?

 

 

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.