Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

WPCF7 with another api via php

<script> 
function funcTest() {
	var pars = {
		'your-name': jQuery('.wpcf7-form input[name="your-name"]').val(),
		'your-email': jQuery('.wpcf7-form input[name="your-email"]').val()
	};
	jQuery.post("/placementtest.php", pars);
	return true;
}
jQuery('.wpcf7-form').submit(funcTest); 
</script>

<?php

$name = $_POST['your-name'];
$email = $_POST['your-email'];

?>