这是注册页面前面部分
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>注册页</title>
<link href="zhuce.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<form action="index.php" method="get">
<br />
<label for="stu">学号</label>
<input type="text" id="stu" name="stu" placeholder="请输入学号:"><br/>
<label for="name">姓名</label>
这是获取表单的新页面
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>hello</title>
</head>
<body>
Welcome <?php echo $_POST["name"]; ?><br>
你的学号是: <?php echo $_POST["stu"]; ?>
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>注册页</title>
<link href="zhuce.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<form action="index.php" method="get">
<br />
<label for="stu">学号</label>
<input type="text" id="stu" name="stu" placeholder="请输入学号:"><br/>
<label for="name">姓名</label>
这是获取表单的新页面
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>hello</title>
</head>
<body>
Welcome <?php echo $_POST["name"]; ?><br>
你的学号是: <?php echo $_POST["stu"]; ?>