Need help regarding submitting values through a form with select Box?
<p>I have a empty select box on a form. </p>

<p><code>&lt;select id='essentialDocs[]' &gt;&lt;/select&gt;</code></p>

<p>through some script i add options to it. Basically it adds URL's. So at runtime html will look
like </p>

<pre>
<code>&lt;select id='essentialDocs[]' &gt;
&lt;option value='http://www.google.com' title='Google'&gt;Google&lt;/option&gt; 
&lt;option value='http://www.yahoo.com' title='yahoo'&gt;Yahoo&lt;/option&gt;
&lt;/select&gt;</code>
</pre>

<p>Now on submitting the form i want to get both of these key:value pairs</p>

<p>like Title:URL   google:http://www.google.com</p>

<p>but on doing <code>$_POST['essentialDocs']</code> i only get values and not title's. What modification would help get me both. Also another thing i have on the form is i can switch the ordering of url's on screen. Please suggest some solution</p>
