# Form submitting to 2 actions depending on radio button selct

**URL:** <https://forum.kirupa.com/t/form-submitting-to-2-actions-depending-on-radio-button-selct/318633>\
**Category:** Uncategorized\
**Created:** [January 25, 2011, 9:16pm UTC](https://forum.kirupa.com/t/form-submitting-to-2-actions-depending-on-radio-button-selct/318633 "2011-01-25T21:16:55Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![irishcash33](https://avatars.discourse-cdn.com/v4/letter/i/958977/32.png) [@irishcash33](https://forum.kirupa.com/u/irishcash33)\
**Post date:** [January 25, 2011, 9:16pm UTC](https://forum.kirupa.com/t/form-submitting-to-2-actions-depending-on-radio-button-selct/318633/1 "2011-01-25T21:16:55Z")

</div>

Hi,  
I am working in php(wordpress). I am ok, but not brilliant at it. So I have a form with some fields, 3 radio buttons and one submit button. The main action will be submitting to wordpress db. The second action will be submitting to a url depending on which radio button is selected.  
Example:  
Select Choice A and hit submit. The form will go to wordpress db and choice a’s url. Select Choice B and hit submit. The form will go to wordpress db and choice b’s url.

I am finding out this is easier said than done. I have spent way too long trying to figure this out. I am hoping it is just my inexperience with php!

I found a js script that changes the action depending on which radio button is selected. It works great, but it only sends to one action. I need it to send to 2 actions.

Any suggestions, thoughts, would be greatly appreciated.

Thanks  
Will
