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>
 **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);
?> 
|