<!DOCTYPE HTML Public "-//W3C//DTD XHTML 1.0 transitional//en" "Http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitiona L.dtd "><HTMLxmlns= "http://www.w3.org/1999/xhtml"Lang= "en_US"Xml:lang= "en_US"><!--* Created on December 17, 2015 * ~ Change the template for this generated file go to * window-preferences-phpeclipse -Php-code Templates -<Head><title></title></Head><Body> <!--$_request used to collect data submitted by HTML forms - <formMethod= "POST"Action= "<?php echo $_server[' php_self '];? > ">Name:<inputtype= "text"name= "FName"> <inputtype= "Submit"> </form> <?php $name = $_request[' fname '); echo $name;?> <!--$_request used to collect data submitted by HTML forms - <!--$_post is widely used to collect form data after submitting an HTML form that method= "post". - <formMethod= "POST"Action= "<?php echo $_server[' php_self '];? > ">Name:<inputtype= "text"name= "FName"> <inputtype= "Submit"> </form> <?php $name = $_post[' fname '); echo $name;?> <!--$_post is widely used to collect form data after submitting an HTML form that method= "post". - <!--$_get can also be used to collect form data after submitting an HTML form (method= "GET") - <ahref= "test_get.php?subject=php&web=w3school.com.cn">Test $GET</a> <?php echo "Study". $_get[' Subject '. "At". $_get[' web '];?> <!--$_get can also be used to collect form data after submitting an HTML form (method= "GET") -</Body></HTML>
From:http://www.w3school.com.cn/php/php_superglobals.asp
Phpform form-related hyper-global variable operations