How to send form data to another server

Spread the love

Hi Folks ! Suppose you have 3-4 websites with a contact form and you want to store all of your contact form data on a single server.So if you want this then you have to POST data from one server to another server then catch that data to your main server and then save it to your database. Today i am going to tell you how to send form data from one server to another server.So without any confusion lets do it.

PHP Code Using cURL



So in this code we will POST form data to another server (adpromotion.in) using cURL.To do this i just create a Query string using form variables.In server.php i get the data using $_REQUEST and simply inserted into my database.
Thats All.

Hope it will Help You and please subscribe me and like my facebook page :

and make me proud.By the way if you face any problem then let me know in comment section below

Leave a Reply

Your email address will not be published. Required fields are marked *