php USES post to pass string redirection implementation code

  • 2020-05-05 10:59:14
  • OfStack

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

Related articles: