php - Submit form to two places -


i have issue need simple contact form have action post data collection service, , thank page conversion tracking.

the data collection service page not allow sort of redirection unfortunately, best bet submit both thank page, , data collection service.

i don't know how to though... can please steer me in right direction? i've done lot of searching, can't work jquery or javascript.

any advice / feedback / methods appreciated.

per reply below, i'm trying ajax redirect after sends data collection service this, can't work:

  <script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>    <script type="text/javascript">   // shorthand $( document ).ready()   $(function() { $("#ajaxform").submit(function(e)  {  var postdata = $(this).serializearray();  var formurl = $(this).attr("action");  $.ajax(  {     url : formurl,     type: "post",     data : postdata,     success:function(data, textstatus, jqxhr)      {         window.location.replace("http://example.com");     },     error: function(jqxhr, textstatus, errorthrown)      {         //if fails           } }); e.preventdefault(); //stop default action e.unbind(); //unbind. stop multiple form submit. }); }); </script> <form name="ajaxform" id="ajaxform" action="https://secure.velocify.com/import.aspx?provider=idealhomeloanswebpost&client=idealhomeloansllc&campaignid=46"method="post"> 

submit thank page , have thank page curl request data collection service.

or, submit intermediate page submits curl request , redirects thank page.


Comments

Popular posts from this blog

c++ - OpenCV Error: Assertion failed <scn == 3 ::scn == 4> in unknown function, -

php - render data via PDO::FETCH_FUNC vs loop -

The canvas has been tainted by cross-origin data in chrome only -