It has checkboxes and Qty amounts with a submit button to post it to an outside cartserver service.
My boss wants a running total that updates the price totals when the qty changes and/or the customer checks/unchecks a box.
1st question - Can it be done?
2nd question - How do I do it?
I am new to PHP and have NEVER done any Javascript beyond copying from an example. This was posted in the Javascript side because I think that it can only be done in Javascript.
A snippet of PHP code is included for an example but I can email someone the entire 450 lines to someone who would be willing to help.
Thanks a bunch...
Code: Select all
echo "<table width='800' border='1' rules=none bgcolor='#FFFFCC'>";
echo "<tr><td width='625'><font face='verdana' size='+1'>Front Tie Down Kit Part #: <font color='#333399'>".$fstag."</font> - only <font color='#333399'>$".$fpr."</font></font></td>";
echo "<td><strong>Qty: </strong><input type='TEXT' name='op1_front' value='1' size='2' /></td>"; // qty
echo "<td valign='middle'><strong>Select: </strong><input type='checkbox' checked='checked' value='s-1234^".$fstag."^".$fpd."^".$fpr."^op1^^^^".$fpw."' name='item_front' /></td></tr>";
if ($fs) echo "<tr><td width='625'> Regularly $".$fpn." <font color='#FF0000'><strong>On Sale for Only $".$fpr."</strong></font></td><tr>";