Hi All,

We 've 20 promotional websites and we want to centralize the contact us form.
We have contact us form that is kept in Server 2 and all the other web sites kept in server 1, now i need to include the contactus form server1 inside server 2 websites.
For this i am using PHP Curl function to include the cross domain file (contact us Form).
Now the problem is when i submit the form i want to call a ajax function to save the details in DB and to send mails, but ajax function is not getting triggred in the form.

Please find the attached code illustration

Thanks and Regards,
Deepak ajax_call2

Hi. If you try send data with some domain on to another domain, then this can't do in JavaScript. You must to use JSONP or iframe, for crossdomain requests.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.