PHP Post Request inside a POST Request

前端 未结 3 2071
余生分开走
余生分开走 2021-01-25 08:03

There is a contact form which current action is http://www.siteA.com/ContactInfo.php, it sends fields and values. In ContactInfo.php, i just catch the values and se

3条回答
  •  逝去的感伤
    2021-01-25 08:44

    I'd encourage you to try the Snoopy Class. It's really rather simple:

    "Jonathan","lname"=>"Sampson");
      $snoopy = new Snoopy();
    
      $snoopy->httpmethod = "POST";
      $snoopy->submit("http://www.siteB.com/Reg.aspx", $vars);
    
      # Use the following if you need to view the results
      # print $snoopy->results;
    
    ?>
    

提交回复
热议问题