The following is an example of my HTML page followed by a piece of the corresponding PHP page that is handling the form. I need to get the HTML content (ie the string) from the id and echo it using PHP. The hold the results of some equations. I want the PHP to handle the results and echo them into a well organized table.
HTML
<span id="a" name="a"></span>
<span id="b" name="b"></span>
When a function runs it inserts the answers into the id's a and b. Now I want to echo these answers using PHP when the form is submitted.