<!DOCTYPE html> <html> <body> <form action="demo_form.php" method="get"> <input type="radio" name="sex" value="male" />男性<br /> <input type="radio" name="sex" value="female" />女性<br /> <input type="submit" /> </form> </body> </html>
结果:
编辑上面的代码,点击查看结果。
yige.org
- 试一个