Posting label text along with the array checkbox values
<p>I have following checkbox arrays in html form</p>

<pre><code>&lt;label&gt;&lt;input name="columns[]" type="checkbox" value="pname" /&gt;Property Name&lt;/label&gt;
&lt;label&gt;&lt;input name="columns[]" type="checkbox" value="2000" /&gt;Price&lt;/label&gt;
&lt;label&gt;&lt;input name="columns[]" type="checkbox" value="New Road" /&gt;Location&lt;/label&gt;
&lt;label&gt;&lt;input name="columns[]" type="checkbox" value="Joe Smith" /&gt;Owner&lt;/label&gt;
</code></pre>

<p>there are about 30 such checkboxes.</p>

<p>All i want to do is sending the text along with its value of the checked box while form is posted. Lets say if i checked first checkbox, I want to send  <code>pname</code> along with text <code>Property Name</code>. There can be several solutions for this, but don't know which one will be easier one.</p>

<p>The one I thought is. In submit page iterating through the loop of checkbox array, create another array and Push the text manually to this new array. </p>

<p>Or other option I have thought is, in value attribute I will send text with value like this <code>pname^Property Name</code> and in submit page i iterate through loop, explode the value and put them to respective arrays.</p>

<p>Is there any alternative solution for this? </p>

<p>Thanks</p>
