PHP + MySQL - 如何以单一形式发布2个值

I'm trying to build a very basic inventory management website for my own personal use. I'm having an issue when trying to build 'Delete' functionality into my list of returned items.

This is the PHP script from the visible webpage:

<form action='actions.php' method='post'>
<?php

ini_set('display_errors', 1);

//Create Connection
$conn = new mysqli($servername, $username, $password, $dbname);

//Check Connection
if ($conn->connect_error) {
    die("Connection Failed: " . $conn->connect_error);
    }

$sql = "SELECT * FROM computers WHERE status='Available'";
$result = $conn->query($sql);


if ($result->num_rows > 0) {
    echo "<table id='unassigned'>
            <tr>
                <th onclick='sortTable(0)'>Manufacturer</th>
                <th onclick='sortTable(1)'>Model</th>
                <th onclick='sortTable(2)'>Serial Number</th>
                <th onclick='sortTable(3)'>CPU</th>
                <th onclick='sortTable(4)'>Memory</th>
                <th onclick='sortTable(5)'>HDD</th>
                <th onclick='sortTable(6)'>Status</th>
                <th onclick='sortTable(7)'>Assignee</th>
                <th onclick='sortTable(8)'>Date Assigned</th>
                <th onclick='sortTable(9)'>Date Returned</th>
                <th>ID - TESTING ONLY</th>
                <th>Actions</th>
            </tr>";
    //output data of each row

    while($row = $result->fetch_assoc()) 
    { $id = $row["sn"];

    {
        echo "<tr>
                <td>".$row["manufacturer"]."</td>
                <td>".$row["model"]."</td>
                <td>".$row["sn"]."</td>
                <td>".$row["CPU"]."</td>
                <td>".$row["memory"]."</td>
                <td>".$row["hdd"]."</td>
                <td>".$row["status"]."</td>
                <td>".$row["assignee"]."</td>
                <td>".$row["dateout"]."</td>
                <td>".$row["datein"]."</td>
                <td>" . " <input type='hidden' name = 'id' value= " . $row["sn"] . "> " . "</td>
                <td>" . " <input type='submit' name = 'delete' . ' value='Delete' >" . "</td>
            </tr>";
        }

    }   

    echo "</table>";
    }

    else {
    echo "0 results";
    }
$conn->close();
?>
</form>

And this is the 'actions.php' file:

<?php
$delete = $_POST["delete"];
$id = $_POST["id"];

ini_set('display_errors', 1);

//Create Connection
$conn = new mysqli($servername, $username, $password, $dbname);

//Check Connection
if ($conn->connect_error) {
    die("Connection Failed: " . $conn->connect_error);
    }

if (isset($_POST['id'])){
    echo "ID is set and it is" . $id;
    }
else {
    echo "Where is the ID you numpty";
    }

if (isset($_POST['delete'])){
    $sql = "DELETE FROM computers WHERE sn= $id";  
    echo "Deleting Stuff";
    //if ($conn->query($sql === TRUE) {
        //echo "Record deleted successfully";
        //}
   //else {
        //echo "Error deleting record: " . $conn->error;
        //}

}

$conn->close();
?>

(Please ignore the various testing things I have put in)

The issue I am having of course is that I have defined:

name = "id"

On each row of my table, so when I press any of the delete buttons on the webpage, the ID that is returned on the actions.php page is the very last $row['sn'], whatever that might be...but I can't think of a way to dynamically assign a different name for each ID and then grab it in the actions.php

Can anyone provide some guidance on how I can pass the SN field to my delete query in the separate file?

Thank you!