how to get the value of results in searchbox
<p>this one is related to my other asked question 
"(<a href="http://stackoverflow.com/questions/14683856/get-result-on-search-box/14684518#14684518">get result on search box</a>)"
from the search.php....i made some changes specifically on executing the result of search box, shown like this and this will execute a result in a checkbox form. </p>

<pre><code>      foreach($results as $result) {

  echo "&lt;input type = 'checkbox' name ='studid[]'          value='".$result['studId']." onchange='get_searched_value()''&gt;";
   echo ' ', $result['fname'],'  ',$result['mname'],' ',$result['lname'],'&lt;br/&gt;';
        }
</code></pre>

<p>i made another form name regitercand.php and i just include the form search.php here.</p>

<pre><code>&lt;form method="post" name="searched" action="registercand.php"&gt;
                    &lt;?php  require_once('search.php'); ?&gt;
                    &lt;input type="submit" name="select" value="Select"&gt;
                    &lt;/form&gt;
//here i want to get the value of my search.php(foreach result) from the checked/selected result as i click the select button.. 
&lt;?php
if(isset($_POST['select'])){
$studid = $_POST['studid'];
$position = $_POST['position'];
 echo $studid;
     echo $position;
}
echo "&lt;table&gt;";

echo "&lt;tr&gt;&lt;td&gt;Running for:&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&lt;select name='position'&gt;
                &lt;option value='0' style='font-size: 1em;'&gt;---SELECT---&lt;/option&gt;
                &lt;option value='1'&gt;Chairman&lt;/option&gt;
                &lt;option value='2'&gt;Vice Chairman&lt;/option&gt;
                &lt;option value='3'&gt;Secretary&lt;/option&gt;
                &lt;option value='4'&gt;Treasurer&lt;/option&gt;
                &lt;option value='5'&gt;Auditor&lt;/option&gt;
                &lt;option value='6'&gt;Bus. Manager&lt;/option&gt;
                &lt;option value='7'&gt;P.I.O&lt;/option&gt;
                &lt;option value='8'&gt;Councilor&lt;/option&gt;
                &lt;option value='9'&gt;CCEITE Representative&lt;/option&gt;
                &lt;option value='10'&gt;CCJE Representative&lt;/option&gt;
                &lt;option value='11'&gt;CAS Representative&lt;/option&gt;
                &lt;option value='12'&gt;CTE Representative&lt;/option&gt;
                &lt;option value='13'&gt;CBMA Representative&lt;/option&gt;&lt;/td&gt;&lt;/tr&gt; ";
        $yrnw = date("Y");
        $lyr = 1;
        $lstyr = $yrnw - $lyr ;
        $sy = 10 + $yrnw;
    echo "&lt;tr&gt;&lt;td&gt;SY:&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&lt;select name= 'sy'&gt;";              
             for($i=$yrnw; $i&lt;$sy ; $i++){
            $lst = $i -1;
            echo "&lt;option value='$i'&gt;$lst-$i&lt;br/&gt;&lt;/option&gt;";
                       } 
echo "&lt;/select&gt;&lt;/td&gt;&lt;/tr&gt;
    //here i put save button for another purpose, the result i selected from above will be save into my database. 
&lt;tr&gt;&lt;td&gt;&lt;input type='button' name='save' value='Save'/&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;
";
?&gt;
</code></pre>

<p>the flow is like this. after executing all the results from my searchbox, i will check the names of student to select a candidate(2 or more) and click the select button, then the selected names will be set to select an option for his/her postion then click the save button to save in my table.
how would i possibly get the value of my checkbox &amp; do the save button? plss help, &amp; give me some advice....</p>
