how to get value from a loop while using different button
<p>I need the value from a loop witch is $row->value, then when I click on button_click(href) a DIV popup will show and ask for another value that is idnumber.
At the popup a submit button will direct to next_page.php</p>

<p>I want both value from loop $row->value and at popup value=idnumber send to next_page.php</p>

<pre><code>&lt;div id="show_popup"(hide/show popup)&gt;
 &lt;form action="next_page.php" method="GET or POST"&gt;
  &lt;input name="idnumber" type="text" value=""&gt;
  &lt;input type="submit" value="button"&gt;
 &lt;/form&gt;
&lt;/div&gt;

&lt;?php 
 foreach($foo as $row){
 echo "
 &lt;tr&gt;
   &lt;td&gt;".$row-&gt;value."&lt;/td&gt;
   &lt;td&gt;&lt;a class='button' href='#' onlick='(popup DIV)'&gt;button_click&lt;/a&gt;&lt;/td&gt;
 &lt;/tr&gt;";
 }
?&gt;
</code></pre>

<p>Is this possible?</p>

<pre><code>$(function() {
   function launch() {
   $('#show_popup').lightbox_me({centered: true, onLoad: function() { $('#add-new-popup').find('input:first').focus()}});}
   $('.button').click(function(e) {
   $("#show_popup").lightbox_me({centered: true, onLoad: function() {
$("#show_popup").find("input:first").focus();}});e.preventDefault();
            });
        }); 
</code></pre>
