添加价格值以形成和计算

时间:2013-06-19 17:54:58

标签: php forms

所以我在这里环顾四周并没有看到可以提供帮助的东西。基本上我有一个很好的表格。表单将提交给审核,您可以从审核页面将其发送出去。我想要做的是在评论页面上获得“总价格”。我需要做的是为一组下拉项添加一个值,并将它们乘以一节中标记的复选框的数量。与小提琴的链接将显示我想要做的事情。

示例:检查了多少次Praxis PI检查其轴选择。

<div id="leftDriver">
    <!-- Start Form -->
    <form action="reviewLeft.php" method="post" id="order">
        <!-- This is the club photos -->
        <div class="clubPhotos">
            <div class="club">
                <img src="clubs/img/praxispi.png" class="clubPhoto" /> <span class="clubTitle">Praxis PI</span>
 <span class="clubSub">Low Launch 9.5</span>

                <input type="checkbox" id="clubCheckbox4" class="clubCheckbox" name="DriverType" value="Praxis PI Low Launch 9.5" />
            </div>
            <div class="club">
                <img src="clubs/img/praxispi.png" class="clubPhoto" /> <span class="clubTitle">Praxis PI</span>
 <span class="clubSub">Mid-Low Launch 12.5</span>

                <input type="checkbox" id="clubCheckbox1" class="clubCheckbox" name="DriverType" value="Praxis PI Mid-Low Launch 12.5" />
            </div>
            <div class="club">
                <img src="clubs/img/praxispi.png" class="clubPhoto" /> <span class="clubTitle">Praxis PI</span>
 <span class="clubSub">Mid-High Launch 15.5</span>

                <input type="checkbox" id="clubCheckbox2" class="clubCheckbox" name="DriverType" value="Praxis PI Mid-High Launch 15.5" />
            </div>
            <div class="clear"></div>
        </div>
        <!-- This is the driver order info -->
        <div class="clubForm"> <span class="heading">Club Specs</span>

            <select name="DriverLength" class="select">
                <option value="" selected="selected">Driver Length</option>
                <option value="47.5">47.5</option>
                <option value="47">47</option>
                <option value="46.5">46.5</option>
                <option value="46">46</option>
                <option value="45.5">45.5</option>
                <option value="45">45</option>
                <option value="44.5">44.5</option>
                <option value="44">44</option>
                <option value="43.5">43.5</option>
                <option value="43">43</option>
                <option value="42.5">42.5</option>
                <option value="42">42</option>
            </select>
            <select name="DriverShaft" class="select">
                <option value="" selected="selected">Select Shaft</option>
                <option value="LE- light weight graphite weakest flex">LE- light weight graphite weakest flex</option>
                <option value="LW- Light weight graphite weak flex">LW- Light weight graphite weak flex</option>
                <option value="LM- Light weight graphite medium flex">LM- Light weight graphite medium flex</option>
                <option value="LR- Light weight graphite regular flex">LR- Light weight graphite regular flex</option>
                <option value="GR- Medium weight graphite regular flex">GR- Medium weight graphite regular flex</option>
                <option value="SS- Light weight graphite stiff flex">SS- Light weight graphite stiff flex (low torque)</option>
                <option value="TS- Medium weight graphite stiff flex">TS- Medium weight graphite stiff flex</option>
                <option value="SX- Light weight graphite X-stiff">SX- Light weight graphite X-stiff</option>
                <option value="KS- Light weight steel stiff flex">KS- Light weight steel stiff flex</option>
                <option value="KR- Light weight steel regular flex">KR- Light weight steel regular flex</option>
                <option value="DX- Heavy weight steel extra stiff">DX- Heavy weight steel extra stiff</option>
                <option value="DS- Heavy weight steel stiff flex">DS- Heavy weight steel stiff flex</option>
            </select>
            <select name="DriverPured" class="select">
                <option value="" selected="selected">PURE'd</option>
                <option value="high">High</option>
                <option value="low">Low</option>
            </select>
        </div>
</div>

(请注意附在小提琴上的JS全部用于设计并弹出订单)

fiddle

0 个答案:

没有答案