treehouse : what would you like to learn today?
Web Design Web Development iOS Development

form select list problem

  • I am working on an e-commerce site and trying to get the cart to display properly. Currently I have the quantity displayed and the selectlist that shows the current quantity and would allow you to select a new quantity does not display on the same line in firefox 3 only. the site can be found at http://www.iflcfileserver.com/store. A product will have to be added to the cart to see this bug. The code sample is below.

    <p class=\"product-price-quantity\">Price: <span class=\"value\"><?php Local_CartItemSalePrice(); ?></span><br />Quantity:<?php Local_HiddenFieldCartID(); ?><select name=\"<?php Local_FormQuantityFieldName(); ?>\"><?php Local_ProductQuantityOptions(); ?></select></p>
  • I finally found the issue. After 2 hours of searching and 20 minutes after I posted. The PHP function
    <?php Local_HiddenFieldCartID(); ?>
    lets the software know what cart id is there and places a hidden input value that was forcing my code but not the original that I sampled from. I moved it to another place in the code and problem solved.