Jump to content

siri

New Members
  • Posts

    2
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

siri's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Hi, I wrote a php code for adding product to cart, where i can take the product details from the database and update the quantity of the products. It is working in firefox, but in IE it is not working(i think the problem is with form input variables). Following is the code. Please can anyone help out. Thanks in advance. <form action="formprocess.php" method="post"> <table> <tr><td> <input type="hidden" name="cartid[]" id="cartid[]" value=<?php echo $id ?>></td></tr><tr>   <td align=center><input type="checkbox" name="remove[]" id="remove[]" value=<?php echo $id ?></td>   <td style="padding-left:50px"><?php echo $row2['name']; ?></td>                         <td align="center"><input type="text" name="quantity[]" id="quantity[]" value=<?php echo $quan ?> size=2></td>                         <td align="center"><?php echo "$".$row2['price']; ?></td>                         <td align="right"><?php echo "$".$price; ?></td>                       </tr>                       <tr><td><input type="submit" name="submit" value="submit"></td></tr></table>                       </form>                       formprocess.php <?php for($j=0;$j<$numrows1;$j++) { echo "Cartid".$cartid[$j]; echo "quanity:".$quantity[$j]; echo "value j".$j; $quan = $quantity[$j]; $cid = $cartid[$j];   $query2=mysql_query("update mycart set quantity='$quan' where id='$cid'"); } ?>
  2. Hai, How to disable the selection boxes of form depending on the hidden value,which is retrieved from database when the page loaded or before submission of form?. For retrieving value from database i used PHP & for disabling selection boxes i used javascript,but it is not working. can anyone help me? Thanks in advance.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.