I'm a very savvy programmer, and a fast learner, but I'm in need of some help here.
What I would like to do is have a PHP page that is able to extract the contents/code/source of a separate HTML page, modify it slightly, and output/echo the result (without modifying the original). I would like this PHP page to be able to apply these modifications to several different HTML pages when called upon.
The overall layout will involve 3 pages at any given time.
index.html (page with the link calling upon page.php in a pop-up window)
page.php (the little guy doing all the work)
example.html (the page containing the source we want copied/modified)
index.html will contain a link to a pop-up window, the contents of which will be the altered form of example.html
All I really need is a push in the right direction with this. I thought of passing the link to the 3rd page, the page to be modified, as an argument in the URL to page.php - something like this:
Code: Select all
<a href="page.php?link=example.html">See modified version in a pop-up window!</a>Thanks for your help, everyone!
-Jason