I'm using a PHP landing page instead of HTML and the Prosper landing page tracking script is in Javascript only.
Repeat after me, "PHP... is not... a... markup language. It's a... server side processing language."
The web server processes all PHP instructions
prior to being sent from the server to the client's browser. When the server sends packets of information
to the browser, it sends HTML, Javascript, etc., not PHP. This occurs
after all PHP statements have been processed.
If you haven't figured it out yet: PHP and HTML coexist, it's not one or the other.
So, put your PHP statements at the top or bottom of your file, hell, put them inside the HTML. It doesn't matter. All the .php file extension does is tell the web server to be looking for PHP statements to process. You don't even have to have PHP statements in the file, you could write Javascript, CSS, HTML, etc. in there and it wouldn't make a difference for what shows up to the client's browser.
That's why this:
Code:
<p><?php echo 'This is HTML text.'; ?></p>
Will show up as
Code:
<p>This is HTML text.</p>
In the client's browser.
I strongly suggest you look at some tutorials on w3schools.com.