Send value to another page
<p>I created a table to show the search results, each row the table is a link and the links have a hidden form with a javascript to send the id to another php page, but the problem is when I click one of this links, the form only sends the first id the sql table. After all What's wrong ?</p>

<pre><code>    while ($row = $stmt-&gt;fetch()) { 

        echo("&lt;form id=id_form method=post action=lp_search_system_2.php&gt;
        &lt;input type=hidden name=id value=".$row['id_np_outdoor']."&gt;
        &lt;/form&gt;");

        echo '  &lt;tr align="left" class="simple"&gt;
                    &lt;td&gt;&lt;a href="#" onclick="id_form.submit()"&gt;' . $row['nome'] . '&lt;/a&gt;&lt;/td&gt;
                    &lt;td&gt;&lt;a href="#" onclick="id_form.submit()"&gt;' . $row['sobrenome'] . '&lt;/a&gt;&lt;/td&gt;
                    &lt;td&gt;&lt;a href="#" onclick="id_form.submit()"&gt;' . $row['tipo'] . '&lt;/a&gt;&lt;/td&gt;
                    &lt;td&gt;&lt;a href="#" onclick="id_form.submit()"&gt;' . $row['estado'] . '&lt;/a&gt;&lt;/td&gt;
                    &lt;td&gt;&lt;a href="#" onclick="id_form.submit()"&gt;' . $row['país'] . '&lt;/a&gt;&lt;/td&gt;
                &lt;/tr&gt;

             ';

}
                echo "&lt;/table&gt;";
</code></pre>
