單選 多選 下拉框
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>單選框、復(fù)選框</title>
</head>
<body>
<form action="save.php" method="post" >
? ? <label>性別:</label>
? ? <label>男</label>
? ? <input type="radio" value="1" ?name="sex" checked />
? ? <label>女</label>
? ? <input type="radio" value="2" ?name="sex" /> ? ? ? ?
? ? ? ?</br></br>
? ? ?<label>愛(ài)好:</label>
? ? <label>旅游</label>
? ? <input type="checkbox" value="1" ?name="habit" checked/>
? ? <label>攝影</label>
? ? <input type="checkbox" value="2" ?name="habit" />
? ? ?<label>健身</label>
? ? <input type="checkbox" value="3" ?name="habit" />
? ? ?<label>購(gòu)物</label>
? ? <input type="checkbox" value="4" ?name="habit" />
? ? ? ? ?</br></br>
? ? <label>最喜歡的城市:</label>
? ? ?<select id="city" >
? ? ? ? <option value="紐約">紐約</option>
? ? ? ? <option value="新加坡">新加坡</option>
? ? ? ? <option value="威尼斯">威尼斯</option>
? ? ? ? <option value="香港" selected>香港</option>
? ? ? ? </select>
</form>
</body>
</html>
2015-01-20
完成的不錯(cuò)