Home  >  Article  >  Backend Development  >  Implementation code for using post to pass string redirection in PHP_PHP Tutorial

Implementation code for using post to pass string redirection in PHP_PHP Tutorial

WBOY
WBOYOriginal
2016-07-21 15:30:08907browse

复制代码 代码如下:

$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;

www.bkjia.comtruehttp://www.bkjia.com/PHPjc/323285.htmlTechArticle复制代码 代码如下: $ch = curl_init('http://domain-name.com/page.php'); curl_setopt($ch, CURLOPT_POST, 1); curl_setopt($ch, CURLOPT_POSTFIELDS, "FORM_ID=295EMAIL=$_POST[EMAI...
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn