Php 请求\u方法默认值

Php 请求\u方法默认值,php,get,default,Php,Get,Default,是 $\u服务器[“请求方法”]是否默认设置为“获取” 此代码 <?php echo $_SERVER["REQUEST_METHOD"]; ?> 输出“GET”,即使它位于没有其他标记的空文件中(//)默认情况下,浏览器发送的请求总是GET。看一看 看看这个: 17.3形式要素 <!ELEMENT FORM - - (%block;|SCRIPT)+ -(FORM) -- interactive form --> <!ATTLIST FORM %attr

$\u服务器[“请求方法”]
是否默认设置为“获取”

此代码

<?php echo $_SERVER["REQUEST_METHOD"]; ?>


输出“GET”,即使它位于没有其他标记的空文件中(
/
/

默认情况下,浏览器发送的请求总是
GET
。看一看

看看这个:

17.3形式要素

<!ELEMENT FORM - - (%block;|SCRIPT)+ -(FORM) -- interactive form -->
<!ATTLIST FORM
  %attrs;                              -- %coreattrs, %i18n, %events --
  action      %URI;          #REQUIRED -- server-side form handler --
  method      (GET|POST)     GET       -- HTTP method used to submit the form--
  enctype     %ContentType;  "application/x-www-form-urlencoded"
  accept      %ContentTypes; #IMPLIED  -- list of MIME types for file upload --
  name        CDATA          #IMPLIED  -- name of form for scripting --
  onsubmit    %Script;       #IMPLIED  -- the form was submitted --
  onreset     %Script;       #IMPLIED  -- the form was reset --
  accept-charset %Charsets;  #IMPLIED  -- list of supported charsets --
  >