Listbox with javascript action not posting values
<p>I have the following form:</p>

<pre><code>&lt;form name='progObj_form' method='POST' enctype='multipart/form-data' action='processpage.php'&gt;
&lt;select name='manageObj[]' id='objectives'  multiple="multiple"&gt;
&lt;option value=0&gt;there are no objectives for this program&lt;/option&gt;
&lt;/select&gt;&lt;br /&gt;
&lt;a href='#nogo' onclick="delItem(objectives,0,'objEditBtn')" class='shiftOpt'&gt;delete selected&lt;/a&gt;&lt;br /&gt;
&lt;input name='newObjective' type='text' id='newObjective'/&gt;
&lt;input name='addNew' type='button' onclick="AddItem(newObjective.value,6,'objectives','objEditBtn');" value='add objective'/&gt;
&lt;input name="passProgID" type="hidden" value="1" /&gt;&lt;br /&gt;
&lt;input name="objectiveEdit" id="objEditBtn" type="submit" value="save changes" disabled=disabled/&gt;
&lt;/form&gt;
</code></pre>

<p>that allows data (objectives in this case) to be added and deleted from a list box.  That all works well but for some reason the updated listbox values aren't being passed to the process page.  </p>

<p>I'm catching the data like so (simplified):</p>

<pre><code>if (isset($_POST['objectiveEdit'])){
$progID=$_POST['passProgID'];
 for ($v=1;$v&lt;count($_POST['manageObj']);$v++){
   $value=$_POST['manageObj'][$v];
   $sqlObj="INSERT INTO progObjective (progID,objective,objectiveOrder) VALUES ($progID,$value,$v)";
   $result = mssql_query($sqlObj,$linkProbation) or die('Query failed: '.$sqlObj);  
 }//end for ($a=0;$a&lt;count($_POST['manageObj']);$a++)   
$objMsg=print_r($_POST['manageObj']).$sqlObj;       
}//end if (isset($_POST['objectiveEdit'])
</code></pre>

<p>For <code>$objMsg</code>, I get a response of <code>1</code> and the array doesn't print because ostensibly, it's empty which means that it also doesn't enter the for loop.  </p>

<p>I can include the javascript as well but started with just this for simplicity since I'm probably just overlooking something obvious?!</p>
