a href wont go to the right link using php

I have buttons who in theory will go to a link https://example.com/soknader.php?id=18

In inspect element it fetches the right results but when someone clicks the button it leaves the id part to https://example.com/soknader.php

$sql = "SELECT id, dato, epost, navn, discordtag FROM soknader WHERE whitelisted = '0'";
$result = $conn-> query($sql);

?>
<form method="post" action="vis_soknad.php">
<?php

if ($result-> num_rows > 0) {
    while ($row = $result-> fetch_assoc()) {?>
        <tr>
            <td style="display:none;"><?php echo $row["id"]; ?></td>
            <td><?php echo $row["dato"]; ?></td>
            <td><?php echo $row["epost"]; ?></td>
            <td><?php echo $row["navn"]; ?></td>
            <td><?php echo $row["discordtag"]; ?></td>
            <td>
        <button class="innknapp" name="idd"><a href='vis_soknad.php?id=<?php echo $row["id"]; ?>'></a><i class="fas fa-arrow-alt-circle-down"></i> Vis</button>
      </td>
        </tr>

PHP and html^^

Text

Picture of the php fetching the right id but doesnt send me to that link