PHP - Get the input's label content?
<p>I'm making order page which contain a list of items and each of them has <code>input</code> to type in the amount you want to order.</p>

<p>The markup is like this:</p>

<pre><code>&lt;label for="item1"&gt;Fried Rice&lt;/label&gt;
&lt;input type="number" id="item1" name="item1"&gt;
...
//I have like 10 more items below
</code></pre>

<p>So basically, how do I get the string <code>Fried Rice</code> in PHP?</p>

<p>I'm thinking of hard-coding the input's <code>name</code> to <code>"fried rice"</code>, but it will be troublesome if someday the item name is changed.</p>

<p>Any solution? Thanks. I'm new to PHP by the way.</p>
