1.sy2_1.php界面输入信息界面
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Title</title> </head> <body> <form id="form1" name="form1" method="get" action="sy2_1_jieShou.php"> <p> 姓名:<input type="text" name="xm"> </p> <p> <input type="radio" name="xb" value="男"/>男 <input type="radio" name="xb" value="女"/>女 </p> <p> <input type="submit" value="提交"/> <input type="reset" value="全部重写"> </p> </form> </body> </html>
2.sy2_1_jieshou.oho接收信息
<?php $xm=$_GET[‘xm‘]; $xb=$_GET[‘xb‘]; echo $xm,"同学,欢迎您访问本网页!<br/>"; echo "你是一位",$xb,"生";