Hello guys i am happy to say that this is my 100th POST and very happy to see my website is having more than 70 Unique visits everyday. Do visit my website for all kind of scripts and tricks.Thanks
This code will tell you how to post data from your webite to another website using cUrl in PHP
<?php
$urltopost = “http://mywebsite.com/post.php”;
$datatopost = array (“firstname” => “balu”,
“lastname” => “mohan”,“email” => “admin@mistonline.in”,);
$ch = curl_init ($urltopost);
curl_setopt ($ch, CURLOPT_POST, true);
curl_setopt ($ch, CURLOPT_POSTFIELDS, $datatopost);
curl_setopt ($ch, CURLOPT_RETURNTRANSFER, true);
$returndata = curl_exec ($ch);?>
$urltopost
The url where you want to post your data to
$datatopost
The post data as an associative array. The keys are the post variables
$ch = curl_init ($urltopost);
Initializes cURL
curl_setopt ($ch, CURLOPT_POST, true);
Tells cURL that we want to send post data
curl_setopt ($ch, CURLOPT_POSTFIELDS, $datatopost);
Tells cURL what are post data is
curl_setopt ($ch, CURLOPT_RETURNTRANSFER, true);
Tells cURL to return the output of the post
$returndata = curl_exec ($ch);
Executes the cURL and saves theoutput in $returndata
Thanks a lot http://coderscult.com
Incoming search terms:
- curl script to post data (5)
- php tutorial curl click on button (4)
- combobox selected value display in a textbox in js mysql (3)
- how to post data from one site to another (3)
- get data from website using php (3)
- curl post tutorial simple (3)
- php curl click button (3)
- php script to submit post data (2)
- post data to web site using php (2)
- how to send the data from php to other website (2)
- post data to another website (2)
- search data on other web site uing curl (2)
- get data on other web site uing curl (2)
- get data from another url javascript (2)
- posting data from one website to another (2)
- post to website through php (2)
- curl serarchin on other web site (2)
- how to post variables using curl (2)
- how to pull and retrieve data from other websites using curl in php (2)
- curl data searching in other surl using post (2)
- php displaying page with post data curl (2)
- click javascript button with curl in php (2)
- post data to a website using curl (1)
- post data to another site using curl (1)
- POST data to another php file (1)
- post data to other webpage using php curl (1)
- post value through curl and excecute the other website page (1)
- post to website from php (1)
- post to another site using php (1)
- post to another site curl (1)
- POST images from one site to another curle php (1)
- post from one website to another php (1)
- send data from one website to another website using php (1)
- post data with curl to another script (1)
- post data to website with curl (1)
- post data to web site (1)
- post data to other website php (1)
- post data other website php curl (1)
- post data from other website (1)
- php post data to another web (1)
You will also be interested in ,
- Login to yahoo using cUrl in php
- Store Data In Remote DataBase Using cUrl or Execute a HTTP POST Using PHP CURL
- Enabling curl on XAMPP for Windows
- Find the string and then the line number using php from text file
- Display text file line by line and delete certain lines using php
- Remote Mysql Connection From CPANEL And Connect To MYSQL Database From Your Local Webserver or Other External Web Server
- Using no-cache for Stop Caching in Firefox and Internet Explorer
- View edit and save text file database using php
- Find out which mode php is running CGI or DSO mode
- Using PHP_SELF best practices

