There are a few different ways to include php into an HTML document.
1. If you have available to you cpanel or the windows equivalent then you can simply turn on SSI, add .htm and .html to your list and begin to include SSI's within your html pages.
<!--#include virtual="myfile.php" -->
Do note that the "type" has been left out on purpose.
Using the method you will also have to modify your echo statments as well. Sometimes they have a funny effect if you don't break them up. If you don't have any problems then don't fix it... if you start to have problems then look at your echo statements
3. This is just the opposite....
If you want to send information to a php file such as the title of the webpage
You can utilize the following method
var image = "../pixel.gif";
var title = escape(document.title);
var link = "<img src='../myphpfile.php?title=" + title + "&img=" + image + "' align='middle' style='display:none' alt='©0'>";
document.write(link); //This will write out to the page
Now on your PHP page you include the following:
$title = $_GET['title']
Hope it helps
[edited by: jatar_k at 3:48 pm (utc) on May 30, 2004]
[edit reason] no sigs thanks [/edit]