# Submit Button -Onclick EVent

**URL:** https://forum.kirupa.com/t/submit-button-onclick-event/200324
**Category:** programming
**Created:** [September 11, 2006, 12:43pm UTC](https://forum.kirupa.com/t/submit-button-onclick-event/200324 "2006-09-11T12:43:27Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![paxdev](https://avatars.discourse-cdn.com/v4/letter/p/6a8cbe/32.png) [@paxdev](https://forum.kirupa.com/u/paxdev)
#### Post date: [September 11, 2006, 12:43pm UTC](https://forum.kirupa.com/t/submit-button-onclick-event/200324/1 "2006-09-11T12:43:27Z")

</div>

Hi,  
I’m doing a simple shopping cart, after the user decided to checkout, I want to add all items to a order table before connecting to the credit card service provider.  
Instead of a separate page, When user clicks submit button I want it to insert data in the onclick event and also call the service provider page which is in the form action.  
Please help  
Thanks
