HTML form values be used with PHP script
<p>I wanted to know if there is a better way to layout my form without having to create four check-boxes for the user to input 4 quarters as 25+25+25+25 = 1.00 to buy a drink.</p>

<p>Currently, I just have one check-box for each denomination(Nickles, Dimes and Quarters) I want to use.</p>

<p>I was wondering if there is better way in php and html that I can set a button, so that the user can only click a button for just quarters such that one click equates to 25 on the php side, and two clicks equates to 50 on the php side.</p>

<p>For example a user can click the quarters button once, and the value sent to the php script should be 25, and if the user clicks on nickles twice the value should be 5+5 = 10.</p>

<pre><code>&lt;form&gt;
&lt;label&gt;Input Money Denominations&lt;/label&gt;
&lt;br /&gt;
&lt;LABEL&gt;&lt;INPUT TYPE="checkbox" NAME="money1" VALUE="Quarters"&gt;Quarters&lt;/LABEL&gt;
&lt;LABEL&gt;&lt;INPUT TYPE="checkbox" NAME="money2" VALUE="Dimes"&gt; Dimes&lt;/LABEL&gt;
&lt;LABEL&gt;&lt;INPUT TYPE="checkbox" NAME="money3" VALUE="Nickles"&gt; Nickles&lt;/LABEL&gt;
&lt;/form&gt;
&lt;!--They are distinguished by their unique VALUEs
Only the value of the checked checkboxes will be passed to the php script.--&gt;
&lt;!--End Checkboxes for money option--&gt;
&lt;!--Submit button--&gt;
&lt;INPUT TYPE="submit" NAME="money" VALUE="Submit Denomination"&gt;
&lt;!--The type of button tells what it does. The name is optional unless you are using a script that requires it(php).
</code></pre>
