Posted By

yasbas on 11/12/10


Tagged


Versions (?)

Redirecting with POST query


 / Published in: PHP
 

  1. $ch = curl_init('http://domain-name.com/page.php');
  2. curl_setopt($ch, CURLOPT_POST, 1);
  3. curl_setopt($ch, CURLOPT_POSTFIELDS, "FORM_ID=295&NAME=$_POST[NAME]&EMAIL=$_POST[EMAIL]&PHONE=$_POST[PHONE]&DESCRIPTION=$_POST[DESCRIPTION]");
  4. curl_exec($ch);
  5. curl_close($ch);

Report this snippet  

You need to login to post a comment.