OS Commerce Validation errors

Discussion in 'HTML & Website Design' started by ChaosFoo, Jan 31, 2008.

  1. #1
    I'm in the process of building a website that uses OS commerce as the shopping cart.

    Let me be clear this up right now: The site is not built on OS Commerce, OS Commerce is ONLY performing shopping cart functions. The product pages and indexes were all built by hand.

    When I add the 'add to cart' code to the web page I get validation errors.

    Here is the 'add to cart' code:

    
    	<form method='post' action='http://www.mysite.com/product_info.php?products_id=IDEE2001U&action=add_product' name='cart_quantity'/>
    		<input type='hidden' name='products_id' value='IDEE2001U' />
    		<input type="image" src="images/add-to-cart-product.gif" name="Add to Cart" alt="Add this item to your cart." />
    	</form>
    
    Code (markup):
    I get about 3 errors with the action in the form. It seems that W3C doesn't like any url's with the '&' character in there.

    Is this going to cause any problems?
    Is there a simple fix for something like this?

    Thanks.
     
    ChaosFoo, Jan 31, 2008 IP
  2. ChaosFoo

    ChaosFoo Peon

    Messages:
    232
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Does anyone have any clue?
     
    ChaosFoo, Feb 1, 2008 IP