I am just starting out with PHP, and have set myself the task of recreating a simple version of this page http://www.runningforfitness.org/calc/convert.php
I have managed to write the code that takes the user input and displays the processed results on a different page but I really want the form generation and processing to occur on the same page.
I believe I need to have the form action pointing to the page in which it appears and then when the submit button is pressed for some php code to step in and generate the results table.
I want my results to be displayed within a HTML table so how do I write the code within a php block?
If I simply write the HTML code inside the PHP nothing happens.
If anyone does something similar to this I would be grateful if you could post the code for me to try and unscramble.
The trouble when you are just learning is that its very difficult to know what help you need and how to ask for it - so sorry if this is not clear.