PHP Dynamic HTML Question
<p>I have this piece of PHP/HTML, wrapped in a POST form. How do I pass only the ID for the row where the delete button is clicked back to the server?</p>

<pre><code>        &lt;table&gt;
            &lt;tr&gt;
                &lt;th&gt;File Path&lt;/th&gt;
                &lt;th&gt;Expiration&lt;/th&gt;
            &lt;/tr&gt;
            &lt;?php
                $result = mysql_query ($list_query);
                $row_count = mysql_numrows ($result);

                for ($i = 0; $i &lt; $row_count; $i++) {
                    $id = mysql_result ($result, $i, "id");
                    $path = mysql_result ($result, $i, "path");
                    $expiration = mysql_result ($result, $i, "expires");
            ?&gt;
                    &lt;tr&gt;
                        &lt;td width="60%"&gt;
                            &lt;?php echo $path; ?&gt;
                        &lt;/td&gt;
                        &lt;td&gt;
                            &lt;?php echo $expiration; ?&gt;
                        &lt;/td&gt;
                        &lt;td&gt;
                            &lt;input type="submit" value="Delete Expiration" /&gt;
                        &lt;/td&gt;
                    &lt;/tr&gt;
            &lt;?php
                }
            ?&gt;
        &lt;/table&gt;
</code></pre>
