www.webdeveloper.com
Results 1 to 2 of 2

Thread: Image Link to include two functions using only html

  1. #1
    Join Date
    Nov 2012
    Posts
    1

    Image Link to include two functions using only html

    Hi
    I need to create an "add to basket" image that will firstly submit order to database and then open a new page from the site. I can make the two elements work on their own but not combined. (Basket is zencart)

    This is what I have:

    <form name="cart_quantity" action="http://www.zencart.com?main_page=product_info&amp;action=add_product" method="post" enctype="multipart/form-data">

    <input type="hidden" name="cart_quantity" value="1">

    <input type="hidden" name="products_id" value="1" />

    <input type="image" src="includes/templates/template_default/buttons/english/button_in_cart.gif" alt="Add to Cart" title=" Add to Cart " />


    <a href="http://www.zen-cart.com" target="_blank"></a></form>

    BUT the href does nothing.

    Any help or suggestions gratefully accepted.

  2. #2
    Join Date
    Mar 2011
    Posts
    1,135
    You can't do that in HTML. You might be able to use JavaScript to do it, but it would probably be easiest to simply modify the appropriate file in Zen Cart to show the user the desired page when an order has been succcessfully submitted.
    Rick Trethewey
    Rainbo Design

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles