Redirecting with POST query


/ Published in: PHP
Save to your folder(s)



Copy this code and paste it in your HTML
  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);

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.