Saeed sdns
Saeed sdns

Reputation: 970

how sending form data to two server

I have a html form. In this form I have 3 input: "name", "mobile" and "email", with a submit button.

In this form I use mailchimp and form inputs send to mailchimp.

I want do this:

  1. send all 3 input to mailchimp.(It's ok now and I can do it)
  2. send name and mobile input to my sms server(sms server give me a link that I send my input it with Post or Get method)

I can do this 2 case separate, but I can not do together. because form can not have 2 action.

How I can solve this problem?

so tnx :)

Upvotes: 1

Views: 260

Answers (1)

Mike Dinescu
Mike Dinescu

Reputation: 55720

Have your form post to an intermediate PHP script. That script would then subsequently POST to mail chimp, and then execute another post to your SMS gateway using something like cURL.

Upvotes: 3

Related Questions