php 软件20-5 马程龙
form.html:
<form action="form.php" method="post">
<div>
<label for="username">用户:</label>
<input id="username" type="text" placeholder="用户名不能少于3个字符" name="username" autofocus>
</div>
请选择专业 软件技术 大数据应用技术 物联网应用技术 电竞技术
语文 数学 php js
<button>注册</button>
</form>
![在这里插入图片描述](https://img-blog.csdnimg.cn/c5ef185d6acb4a32a35a9f6291a7f0d6.png?x-oss-process=image/watermark,type_ZHJvaWRzYW5zZmFsbGJhY2s,shadow_50,text_Q1NETiBATWNsMjg0Nzc2MTYxMQ==,size_20,color_FFFFFF,t_70,g_se,x_16#pic_center) **form.php** <?php echo "
"; $username=$_POST['username']; print_r($username);
echo “ ”;
h
o
b
b
y
=
hobby=
hobby=_POST[‘hobby’]; //printf_r(
h
o
b
b
y
)
;
v
a
r
d
u
m
p
(
hobby); var_dump(
hobby);vard?ump(hobby);
echo “ ”;
d
e
p
t
=
dept=
dept=_POST[‘dept’]; echo"专业代码:".$dept;
echo “ ”;
c
o
u
r
s
e
=
course=
course=_POST[‘course’]; var_dump($course);
?>
|