I have a lead form that i would like to use on different landing page on different domains. I will need the content of the form upon submit to database the information and then HTTP Post the lead to different vendors 1 at a time until a vendor "accepts" or "rejects" the lead.
Once the lead has been submitted the should be brought to a animated waiting page while they wait for the responses from our vendors.
If the lead is accepted by a vendor they will send a json response back with the "price" "url" and "status".
If the lead is accepted the json response will include a redirect URL that the lead should be redirect to complete the transaction.
Here are example of a responses from a vendor after accepting the lead:
If the lead is "rejected" i would like it to http post to next vendor.
At this time its only 3 vendors. If all vendors reject the lead it will be redirected to another page where i will have some other offers for them.
Here are example of a responses from a vendor after rejecting the lead:
This all needs to be done in real-time and as smooth as possible to avoid losing the lead. I would like this information databased in MySQL so i can query as needed.
Let me know if you can help