echo php results to two separate divs
<p>I have one php function that receives drop down variables through javascript. The variables are processed through the function, and the function returns two results. I would like to show one of the results in div 'one' at the top of a page and the other result to display in div 'two' which is at the bottom of the same page. How can I do that?</p>

<p>I am using this jScript function to pass the variables from the drop downs to php page</p>

<pre><code>function getRunners() {
var awayRunner = document.getElementById('awayRunner').value;
var homeRunner = document.getElementById('homeRunner').value;

if(window.XMLHttpRequest) {
    xmlhttp13 = new XMLHttpRequest();

}
else {
    xmlhttp13 = new ActiveXObject("Microsoft.XMLHTTP");
}
xmlhttp13.onreadystatechange = function() {
    if(xmlhttp13.readyState == 4 &amp;&amp; xmlhttp13.status == 200) {
        document.getElementById("one").innerHTML = xmlhttp13.responseText;
    }
}
xmlhttp13.open("GET", "/Modules/process.php?awayRunner=" + awayRunner + "&amp;homeRunner=" + homeRunner, true);
xmlhttp13.send();
</code></pre>

<p>}</p>

<p>in the php page, I have something like this
    

<pre><code>function getResults($homeRunner,$awayRunner){
  process info...
  echo $homeResult;
  echo $awayResult;
}

getResults($homeRunner,$awayRunner);
?&gt;
</code></pre>

<p>I understand the jScript code above only returns to div "one". how do i incorporate a div "two" into it?</p>

<p>Thank you in advance!</p>
