哪錯了,提示作業(yè)區(qū)忘記填寫
<body>
<form action="save.php" method="post" >
? ? <label>性別:</label>
? ? <label>男</label>
? ? <input type="radio" value="1" ?name="gender" />
? ? <label>女</label>
? ? <input type="radio" value="2" ?name="gender" />
? ? <br/><br/>
? ? 你喜歡的電影?<br/>
? ? <input type="checkbox" name="movies" value="恐怖">恐怖
? ? <input type="checkbox" name="movies" value="愛情" checked="checked"/>劇情
? ? <input type="checkbox" name="movies" value="喜劇" checked="checked"/>喜劇
? ? <input type="checkbox" name="movies" value="家庭" checked="checked"/>家庭
? ? <input type="checkbox" name="movies" value="倫理" checked="checked"/>倫理
? ? <input type="checkbox" name="movies" value="戰(zhàn)爭" >戰(zhàn)爭
</form>
</body>
</html>
2016-08-05
沒有頭標(biāo)簽,習(xí)慣性的的在checked后不加/,lable for="控件id"。
2016-08-05
html 沒有封閉 ?恐怖戰(zhàn)爭后沒加/
2016-08-05
恐怖和戰(zhàn)爭后沒加/
2016-08-05
代碼我?guī)湍氵\行過了沒問題,你少了一個<html>開始標(biāo)簽
2016-08-05
html標(biāo)簽沒有封閉,頭標(biāo)簽沒有,另外單選的label沒有起到應(yīng)有的作用,input標(biāo)簽雖然可以是單標(biāo)簽,寫成<input>的形式?jīng)]問題,但最好還是寫成<input />
2016-08-05
沒錯???提交正確
2016-08-05
最上面好像沒有<html>
2016-08-05
沒明白你的問題,哪里提示作業(yè)區(qū)忘記填寫了
2016-08-05
?<input type="checkbox" name="movies" value="恐怖"/>恐怖
<input type="checkbox" name="movies" value="戰(zhàn)爭" />戰(zhàn)爭