$_SERVER['REQUEST_METHOD']该变量中存储的是表单提交的方式。默认为get可用isset($_POST["表单名或字段名"]) 或者$_SERVER['REQUEST_METHOD']=="POST"判断 试过以下是无效的:用$_REQUEST_METHOD 来判断 ,如:<?phpif($_REQUEST_METHOD == “POST”){echo “post:”.$_POST['firstName'].”—”.$_POST["birthday"];
The above has introduced PHP post get, including aspects of it. I hope it will be helpful to friends who are interested in PHP tutorials.