Home  >  Article  >  Backend Development  >  php中的 action 干参数 ,有什么特殊含义吗?见 代码

php中的 action 干参数 ,有什么特殊含义吗?见 代码

WBOY
WBOYOriginal
2016-06-13 12:34:06866browse

php中的 action 做参数 ,有什么特殊含义吗?见 代码
我在 学习php 5,对错误提示 设置为显示:
有 下面代码:



    

    

 图形(周长&面积)计算器


矩形||
三角形||
圆形





   echo   $_GET["action"];
   
?>


运行了 http://localhost/xphp/tuxingjsq.php,点击 矩形 三角形,圆形的链接,不会出现错误提示。



当我将 链接中的action 改为 其他的名字时 ,如:name  ,出现了错误提示,如:



    

    

 图形(周长&面积)计算器


矩形||
三角形||
圆形





   echo   $_GET["name"];
   
?>


会出现错误提示:
PHP Notice: undefined index xxx

请问 : 这是action 有特殊含义吗?还是其他原因?
  
Statement:
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