how to return 2 values from a list?
<p>I have the following javascript functions:</p>

<pre><code>// JavaScript Document

function showList() {
   sList = window.open("CLASS_LIST.PHP", "list", "width=421,height=600");
}
function remLink() {
   if (window.sList &amp;&amp; window.sList.open &amp;&amp; !window.sList.closed)
      window.sList.opener = null;
}

function pick(symbol) {
   if (window.opener &amp;&amp; !window.opener.closed)
      window.opener.document.student.admission_class.value = symbol;
   window.close();
}
</code></pre>

<p>in the form tag I called this function:</p>

<pre><code>&lt;input name="admission_class" type="text" /&gt;
&lt;INPUT TYPE="button" VALUE="List" onClick="showList()"&gt;
</code></pre>

<p>It open the list in a new window and on selection return the class_id, but I want to return the class_name also which is from the same table.</p>

<p>My requirement to open a list in a new window and on selection return the class_id and class_name to my form.</p>
