if(isset($_POST["conditions"]))
{
//echo "OK";
$username = trim($_POST["username"]);
$gender = $_POST["gender"];
$userpwd = trim($_POST["userpwd"]);
$degree = $_POST["degree"];
$hobby = "";
$arr = $_POST["hobby"];
for($i=0;$i
{
$hobby .= $arr[$i]." ";
}
$intro = nl2br($_POST["intro"]);
$photo = $_FILES["photo"]["name"];
move_uploaded_file($_FILES["photo"]["tmp_name"],"photo/".$photo);
echo "Name:".$username."
";
echo "***:".$gender."
";
echo "Password:".$userpwd."
";
echo "Degree:".$degree."
";
echo "Hobby:".$hobby."
";
echo "Introduction:".$intro."
";
echo "Photo:".$photo;
}
?>
Male
Female
Sports
Music
Entertainment
Movie
=====================================================
最终效果:
阅读(3406) | 评论(0) | 转发(0) |