drupal 7 , drupal 6 solutions
drupal 7 , drupal 6 solutions, we are here for drupal solutions
Monday, September 9, 2013
php post data script
$url = 'https://app.getresponse.com/add_contact_webform.html'; $post = array("name" => "Gareth", "email" => "gareth@mail.com", "submit" => "Sign Up!", "webform_id" => "523155" ); $response = sendPostData($url, $post); function sendPostData($url, $post){ $ch = curl_init($url); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "POST"); curl_setopt($ch, CURLOPT_POSTFIELDS,http_build_query($post)); return curl_exec($ch); } echo $response;
this is php post script, with this script you can send data to other server easly mostly this script used in payment getway and sms getway.
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment