Is this all in a single file called calculation.php?
If not, it should be, and the PHP must precede the HTML, as ahmad_511 said a few replies back. I did this on my local system and it works just fine.
This post has been edited by JackOfAllTrades: 30 April 2010 - 10:51 PM
Reason for edit:: More info