newbiedude Posted April 11, 2008 Share Posted April 11, 2008 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? Link to comment https://forums.phpfreaks.com/topic/100717-assigning-iframe-page-to-a-variablestring/ Share on other sites More sharing options...
discomatt Posted April 11, 2008 Share Posted April 11, 2008 Yes, using either javascript, or file_get_contents(). I don't know how an i frame changes the method of grabbing the source of an external file Link to comment https://forums.phpfreaks.com/topic/100717-assigning-iframe-page-to-a-variablestring/#findComment-515115 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.