Home > Backend Development > PHP Tutorial > 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
Release: 2016-07-21 15:30:08
Original
961 people have browsed it

复制代码 代码如下:

$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...
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template