<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<title>注册表</title>
</head>
<body>
<form action="" name="form1" id="form1" method="post">
<p>注册表</p>
<p><label for="text1">姓名:</label><input type="text" name="text1" id="text1"/></p>
<p><label for="text2">性别:</label><input type="text" name="text2" id="text2"/></p>
<p><label for="radio1">男</label><input type="radio" name='radio' id="radio1" value="男" checked="checked"/>  <label for="radio2">女</label><input type="radio" name='radio' id="radio1"value="女"/></p>
<p><input type="submit" name="submit1" id="submit1" /></p>
</form>
</body>
</html>
<?php
echo"您的信息:";
echo "</br>".'姓名:'.$_POST["text1"];
echo "</br>".'性别:'.$_POST["radio"];
?>
共同學(xué)習(xí),寫下你的評論
評論加載中...
作者其他優(yōu)質(zhì)文章