prices by checkboxes
<p>I want people to see what price they have to pay for a certain product they can buy.</p>

<p>As you can see from the example below if I check on one or more checkboxes there is a certain amount of "discount".</p>

<p>I don't want them to have discount when they just check 1 checkbox, and more discount when they check 3 checkboxes.</p>

<p>What code do I need to put in to make that work! Please help! (the percent discount, 'procent', is 0.9)</p>

<pre><code> &lt;?php 
if ($_POST['sub']){

    $checkv = $_POST['checkv'];
    $checkb = $_POST['checkb'];
    $checke = $_POST['checke'];
    $procent = $_POST['procent'];


    $total = $checkv + $checkb + $checke;
    $total = $total * $procent;
    echo "&amp;#8364; $total,-";

}
?&gt;
</code></pre>

<p>This is the url: <a href="http://sofan.site40.net/Sofan/Untitled-2.php" rel="nofollow">http://sofan.site40.net/Sofan/Untitled-2.php</a> maybe it will help you guys a bit!</p>
