html - How can I POST to multiple urls at the same time? -
our website hosted using ee. i've been tasked add our "contact us" form posts external sales lead generation system (hubspot)
we given url post to, , when found html form in question noticed pointing sales lead system. don't want remove url. possible 2 posts @ same time?
<form action="https://www.salesforce.com/servlet/servlet.webtolead?encoding=utf-8" method="post" http://yoursite.yourportal.hubspot.com/?app=leaddirector&formname=x
you can't single request. use xmlhttp objects or jquery.post(); different url's , same data. send multiple requests. alternatively, send 1 request server, php can send onwards other pages, other servers, evading same-origin policy javascript has.
Comments
Post a Comment