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)
- how to send data from one website to another website using php (3)
- get data from website using php (3)
- curl post tutorial simple (3)
- how to pull and retrieve data from other websites using curl in php (2)
- search data on other web site uing curl (2)
- how to post variables using curl (2)
- get data on other web site uing curl (2)
- curl serarchin on other web site (2)
- how to send the data from php to other website (2)
- get data from another url javascript (2)
- send data to other website php (2)
- php displaying page with post data curl (2)
- click javascript button with curl in php (2)
- posting data from one website to another (2)
- php curl click button (2)
- post to website through php (2)
- curl data searching in other surl using post (2)
- php script to submit post data (2)
- post data to another site using curl (1)
- post data to another website (1)
- post data to another website using 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 data with curl to another script (1)
- post data to websites using php (1)
- post data to website with curl (1)
- post data to web site (1)
- post data to other webpage using php curl (1)
- post data to other site using curl (1)
- post value through curl and excecute the other website page (1)
- php using CURL to post data to other page (1)
- POST data to another php file (1)
- php script of another website (1)
- php post to ddl site curl (1)
- php post from other site (1)
- php post data to another web site (1)
- php get data from other website with post (1)
You will also be interested in ,
- Login to yahoo using cUrl in php
- Enabling curl on XAMPP for Windows
- Store Data In Remote DataBase Using cUrl or Execute a HTTP POST Using PHP CURL
- Reading file using php
- Get youtube video screenshot using simple php and javascript
- Simple file upload script using php
- How to run or Configure Apache to use PHP as CGI
- Speed up wordpress using .htaccess part 2
- Include files in php using include, include_once, require or require_once
- Display Tags in wordpress
