Not sure how you wanted it to behave, here is a GET method....
while( $rows = MySQL_fetch_array($result) ) {
$id = $rows['id];
$username = $rows['username'];
$usermail = $rows['usermail'];
echo "<a href=\"edit.php?id=$id\">Edit $username</a><br />";
}
Simply put each id in the loop...
Here's another way similar to your example...
echo '<table border="0" cellpadding="0" cellspacing="0" width="300" height="100" class="techline">';
echo "<tr>";
echo '<td class="row1"><b>select costum user</b>';
while($rows = MySQL_fetch_array($result) ) {
$id = $rows['id];
$username = $rows['username'];
$usermail = $rows['usermail'];
echo "<form action=\"edit.php\" method=\"post\">";
echo "<input type=\"hidden\" name=\"id\" value=\"$id\" />";
echo "<br><b>User Name:</b> $username";
echo "<br><b>User Email:</b> $usermail";
echo "<input type="submit" value="Edit $id" name="B1" />";
}
echo "</td></tr></table>";