Copying Iframe containing php code to div or other iframe in code form

Heya guys,

          Please excuse my stupidity but I cant for the life of me find a way to do this. Bassicly I have a form that when filled out the data is send to an iframe on the same page and the values from the form are echo'd. I then need it so the code for that page can be copied and then poasted to be used as a html template for a website.

How would I go about reading the iframes source and posting it in html format to a div/iframe/any other visable system where the code could be copied. Please help!

it is possible using ajax.

make an ajax function that reads the page (which is set as src of the iframe), the ajax function returns the content of that page output as response. u can then, assign the response to any div container u want using javascript.

Sponsor our Newsletter | Privacy Policy | Terms of Service