document.getElementById("elementname").innerHTML = selectText puts EVERY option value in my page
<p>So I am using this code:</p>

<pre><code>         function updateSelect(a) {
                $type = a;
                if (window.XMLHttpRequest) {
  xmlhttp=new XMLHttpRequest();  }
else {
  xmlhttp=new ActiveXObject
("Microsoft.XMLHTTP");
  }
xmlhttp.open("GET","selectbox.php?type=".$type,false);
xmlhttp.send();
selectText=xmlhttp.responseText;
document.getElementById("cultpicklist").options.length=0;
document.getElementById("cultpicklist").innerHTML = selectText;
</code></pre>

<p>And for some reason it gives me EVERY option value on the entire page (I have several DISTINCT select boxes)! selectText only pulls from a small subset of the database (i.e. an entirely different table from where this data is coming from) - why would it be doing this?</p>

<p>Here's what is generated on selectbox.php:</p>

<pre><code>&lt;?php
include "mysql_config.php";
$con = mysql_connect($host, $user, $pass);
if (!$con)
{
    die('Could not connect to the database, please contact administrator');
}
mysql_select_db($db);
while ($cultrow = mysql_fetch_array($rescult)) {
        ECHO '&lt;option name="culture[]" value="'. stripslashes($cultrow['cult_id']) .'"&gt;'. stripslashes($cultrow['cult_desc']) .'&lt;/option&gt;';
    }
    ?&gt;
</code></pre>
