*Hey, I have been trying to fix this for hours now. I'm fairly new to PHP, so have some sympathy for me!*

**I'm trying to call the $\_POST[$id], and put it into a table using foreach. It's also telling me that id is an unidentified index. Any idea why? If you have any other pointers for a beginner,feel free to share**

Thank you in advance! 

index form:

```
  foreach ($rows as $row) {
            $food = $row["food"];
            $price = $row["price"];
            $picture = $row["picture"];
            $description = $row["description"];
            $id = $row['id'];

            echo "<tr>
                    <td><img src='$picture' width='120px' /></td>
                    <td>$food</td>
                    <td>$$price</td>
                    <td><input type='number' min='0' max='10' enctype='multipart/form-data' placeholder='#' name='<?php echo $id; ?>' maxlength='1'></td>
                </tr>";
        }

```

submitorder.php table:

```
 while($row = $result->fetch_array()){
            $rows[] = $row;
        }

        foreach ($rows as $row) {
            $food = $row["food"];
            $price = $row["price"];

            $id = $_POST[$id];
            if(!empty($_POST[$id])){
                if(isset($_POST[$id])){
                    $qty = $_POST[$id];
                }else{
                    echo "Is NOT SET";
                }
            }else{
                echo "Is EMPTY";
            }

            echo "<tr>
                    <td>$food</td>
                    <td></td>
                    <td>$$price</td>
                </tr>";
        }

```