久久久久久久视色,久久电影免费精品,中文亚洲欧美乱码在线观看,在线免费播放AV片

<center id="vfaef"><input id="vfaef"><table id="vfaef"></table></input></center>

    <p id="vfaef"><kbd id="vfaef"></kbd></p>

    
    
    <pre id="vfaef"><u id="vfaef"></u></pre>

      <thead id="vfaef"><input id="vfaef"></input></thead>

    1. 站長資訊網(wǎng)
      最全最豐富的資訊網(wǎng)站

      php怎么獲取表單數(shù)據(jù)

      php怎么獲取表單數(shù)據(jù)

      php獲取表單數(shù)據(jù)的幾種方法:

      一、用file_get_contents以get方式獲取內(nèi)容,需要輸入內(nèi)容為:

      <?php $url='http://www.domain.com/?para=123'; $html = file_get_contents($url); echo $html; ?>

      二、用file_get_contents函數(shù),以post方式獲取url,需要輸入內(nèi)容為:

      <?php $url = 'http://www.domain.com/test.php?id=123'; $data = array ('foo' => 'bar'); $data = http_build_query($data); $opts = array ( 'http' => array (     'method' => 'POST',    'header'=> "Content-type: application/x-www-form-urlencodedrn" .         "Content-Length: " . strlen($data) . "rn",     'content' => $data ) ); $ctx = stream_context_create($opts); $html = @file_get_contents($url,'',$ctx); ?>

      贊(0)
      分享到: 更多 (0)
      網(wǎng)站地圖   滬ICP備18035694號-2    滬公網(wǎng)安備31011702889846號