<?php
// 1.获取提交的数据
$username = $_POST['username'];
$password = $_POST['password'];
$password2 = $_POST['password2'];
$email = $_POST['email'];
$sex = $_POST['sex'];
// 2.输出获取的数据
echo '用户名:', $username,'<br>' ;
echo '密码:', $password,'<br>';
echo '确认密码:', $password2,'<br>';
echo '邮箱:', $email,'<br>';
echo '性别:', $sex,'<br>';