Hi to all my group

I am getting the problem of addition of two radio button values in 
shopping.In that i had taken two prices one exclusive and another one 
is non exclsive by default i am getting addtion of exclusive price in 
cart but when I select a radio button of non exclusive price.I am 
unable update the total.

can you please give me suggestion regarding this priblem.


mnr
//sending the code here

 <?php 
                        
                        if(isset($_POST['qty']) and isset($_POST
['index']))
                        {
                                $_SESSION['cart'][$_POST['index']]
['qty']=$_POST['qty'];
                        }
                        
             $a=0; $index=0; $_SESSION['total']=0; 
                         
                foreach($_SESSION['cart'] as $count1)
                        {
                            $b=++$a;
                                
                                $price=$count1['qty']*$count1
['item_exprice']; 
                            $sum+=$price;
                                
                                          
 ?>
  <tr>
    <td nowrap align="center"><?=$b?>
    </td>
    <td nowrap align="center"><img src="<?=$count1['item_image']?
>"><br><?=$count1["item_id"]?>
    </td>
    <td  align="center"><?=$count1["item_source"]?>
    </td>
    <td  align="center"><?=$count1["item_software"]?>
    </td>
        <td nowrap align="left">
        <input type="radio" class="price" checked name="<?=$count1
["item_exprice"];?>" value="<?=$count1["item_nonexprice"];?>" >
        $<?=$count1["item_nonexprice"];?>Exclusive<br>
          <input type="radio" class="price" name="<?=$count1
["item_exprice"];?>" value="<?=$count1["item_exprice"];?>" >
          $<?=$count1["item_exprice"];?> Non-Exclusive
      <div align="left"></div></td>
    <td align="center"><a  href="delete.php?index=<?=$a?>" 
onClick="return sure()">Delete</a></td>
   </tr>
  <?
  
    $index++;
  }
         $_SESSION['total']=$sum;
         ?>
         
  <tr>
    <td nowrap align="right" colspan="4"><b>Total Price:</b></td>
    <td nowrap  colspan="2">$
        <?=$sum;?></td>










Community email addresses:
  Post message: [email protected]
  Subscribe:    [EMAIL PROTECTED]
  Unsubscribe:  [EMAIL PROTECTED]
  List owner:   [EMAIL PROTECTED]

Shortcut URL to this page:
  http://groups.yahoo.com/group/php-list 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/php-list/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to