php通过POST方式提交表单信息代码范例,php中通过$_POST变量获得表单post上来的信息,$_PHP_SELF表示当前页面 if( $_POST["name"] || $_POST["age"] ) { echo "Welcome ". $_POST['name']. ""; echo "You are ". $_POST['age']. " years old."; exit(); } ?> Name: Age: 复制代码 PHP, POST