I use javascript to submit items to my cart. I load the following empty form and post the items:
- Code: Select all
<form name="mySubmitForm" id="mySubmitForm" action="https://our-store.org/cgi-bin/sc/order.cgi" method="post">
<input type="hidden" name="storeid" value="*zzzzz00000zzzzzz">
<input type="hidden" name="dbname" value="products" />
<input type="hidden" name="function" value="add" />
</form><!-- End of mySubmitForm Form -->
It will not go to the cart at the same time, so I have a second form with a second button to go to cart:
- Code: Select all
<form name="goToStore" id="goToStore" action="https://our-store.org/cgi-bin/sc/order.cgi" name="formAddToCart" method="post">
<input type="hidden" name="storeid" value="*zzzzz00000zzzzzz">
<table width="100%">
<tr>
<td align="right"> <input type="submit" value="View Shopping Cart" /></td>
</tr>
</table>
</form><!-- End of goToStore Form -->
This is sloppy. I want one button to do both. Help!!!