jRiegert Posted March 15, 2013 Share Posted March 15, 2013 Hello all, just wondering if someone could help me out here..I'm working on a form and looking to get two things happen at the same time when submitted.the below code works great on there own.. but I'm looking to add them. [1] submits the data to a shopping cart.and[2] opens a drop down modal box telling the user they added it to the cart -- <div class="add">Quantity <input type="text" name="my-item-qty" value="1" size="5" class="input"/> <!-- [1] --> <input type='submit' name='my-add-button' value="ADD" class='my-add-button demo'/> <!-- [2] --> <input type="submit" class="simplemodal-close" style="background-image:url(../images/cart-add.png);height:22px; width:71px;background-color:transparent;border:0px;" name="my-add-button" value=" " /> </div> -- Quote Link to comment https://forums.phpfreaks.com/topic/275696-joining-2-actions/ Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.