Submit Buttons in while loop
<p>my problem may be easy for experienced users, but I'm stucked on it. So, here's the problem. I have submit buttons in while loop, they draw, but they don't react on click. Here's my piece of code.</p>

<pre><code>`&lt;?php
$zap_cmember = count_query("SELECT * FROM `users` WHERE `clan` = '".$member['id']."' AND clan_stat != 'Призывник'");
while ($cmember = mysql_fetch_array($zap_cmember))
{
$zap_gold = mysql_result(mysql_query("SELECT SUM(gold) FROM klog WHERE name = '".$cmember['name']."'"), 0);
$zap_online = mysql_num_rows(count_query("SELECT * FROM `online` WHERE `id_session`='".$cmember['id_user']."'"));
if ($zap_online &gt; 0)
{
    $img_on = "&lt;td align='center' valign='middle' &gt;&lt;img src='images/ico_online.png' alt='онлайн' class='png' &gt;&lt;/td&gt;";
}
else
{
    $img_on = "&lt;td align='center' valign='middle' &gt;&lt;img src='images/ico_offline.png' alt='оффлайн' class='png' &gt;&lt;/td&gt;";
}
$i = 'set';
echo '&lt;tr&gt;
      &lt;td width="141" height="25" align="left" valign="middle" &gt;&lt;a href="player.php?id='.$cmember['id_user'].'" class="text_main_5"&gt;'.$cmember['name'].' ['.lvl($cmember['exp']).']&lt;/a&gt;&lt;/td&gt;
      &lt;td align="center" valign="middle" &gt;&lt;span class="text_main_4"&gt;'.$cmember['clan_stat'].'&lt;/span&gt;&lt;/td&gt;
      &lt;td align="center" valign="middle" &gt;&lt;span class="text_main_4"&gt;-&lt;/span&gt;&lt;/td&gt;
      &lt;td align="center" valign="middle" &gt;&lt;span class="text_main_4"&gt;'.$zap_gold.'&lt;/span&gt;&lt;/td&gt;
      &lt;td align="center" valign="middle" &gt;&lt;span class="text_main_4"&gt;'.$cmember['glory'].'&lt;/span&gt;&lt;/td&gt;
      '.$img_on.'';
        if($boss)
        {echo '&lt;td align="center" id = "'.$i.'" valign="middle"&gt;&lt;input type="submit" name="bSet" value="Назначить"&gt;&lt;/span&gt;&lt;/td&gt;'; }
        $i++;
        $player = $cmember; 
    '&lt;/tr&gt;';

    if (isset($_POST['bSet']))
    {
    echo 'works';
    count_query("UPDATE users SET clan_stat='Вождь' WHERE id_user='".$player['id_user']."'");
    $time = date('j.n.y H:i');
    count_query("INSERT INTO `message` (`time`, `to`, `text`, `metka`) VALUES ('".$time."', '".$player['name']."', 'Вас выбрали главой клана &lt;a href=clan.php&gt;".$clan['name']."&lt;/a&gt;', '6')");
    echo "&lt;script&gt;location.href='clan.php'&lt;/script&gt;";
    }
}
?&gt;
</code></pre>

<p>`</p>