Double action on HTML form submit button


Staff member
I am currently trying to submit form data to a third party site from our own wordpress based website.

I need it to open in a new blank window or tab. I am able to do this so far using a target="_blank" on the form itself.

The tricky part is I also want the data to save on my own site.

The only way I know how to do this double action is to hook in after the post is saved on my site but this means the form is submitted to my own site and then I use javascript or something to redirect to the third party site but this creates pop up warnings which I can't have in this case...

Does anybody have any ideas around this and if I have not been detailed enough please don't hesitate to ask me more info.