Jump to content

Joining 2 actions..


jRiegert

Recommended Posts

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>
 

 

--

Link to comment
https://forums.phpfreaks.com/topic/275696-joining-2-actions/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.