Post the form via AJAX to both sites.
1- post to site #1
2- post to site #2
3- upon completion of #1 and #2, redirect user to a "thank you" page (or update the contents of the current page, etc.)
Alternatively, only use AJAX for the first site and then let the form do the same post it already does today in step #2.