php中的_GET和_POST

來源:互聯網
上載者:User

$svcid=$_GET[svcid]; //通過get獲得php的url中的參數

$my_date=$_POST['my_date1']; //post提交表單,my_date1是表單域的name。

if(!isset($my_date))

$_POST 變數是一個數組,內容是由 HTTP POST 方法發送的變數名稱和值。$_POST 變數用於收集來自 method="post" 的表單中的值。從帶有 POST 方法的表單發送的資訊,對任何人都是不可見的(不會顯示在瀏覽器的地址欄),並且對發送資訊的量也沒有限制。表單域的名稱會自動成為 $_POST 數組中的 ID 鍵)。

$_REQUEST 變數

PHP 的 $_REQUEST 變數包含了 $_GET, $_POST 以及 $_COOKIE 的內容。PHP 的 $_REQUEST 變數可用來取得通過 GET 和 POST 方法發送的表單資料的結果。

原文:

http://zhidao.baidu.com/question/71706544.html

http://www.w3school.com.cn/php/php_post.asp

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.