How can I get the value of the selected item in an unordered list with $_POST?
<p>How can I get the value of the selected item in an unordered list with $_POST? I just want to show the selected item on the next page.</p>

<pre><code>&lt;form id="categories" name="categories" action="register.php" method="post"&gt;
    &lt;ul class="list" name="categories"&gt;
        &lt;li&gt;&lt;a href="#"&gt;Delivery&lt;/a&gt;&lt;/li&gt;
        &lt;li&gt;&lt;a href="#"&gt;House Chores&lt;/a&gt;&lt;/li&gt;
        &lt;li&gt;&lt;a href="#"&gt;Shopping&lt;/a&gt;&lt;/li&gt;
    &lt;/ul&gt;
&lt;/form&gt;
</code></pre>
