改为: 接收:var_dump($_POST);
$user[username] 是哪来的?如果直接使用表单传递的值,你的表单用户名也没有写name属性如下: //php$_post["userName"]
这里面有没name属性...
加上name属性