黄色电影一区二区,韩国少妇自慰A片免费看,精品人妻少妇一级毛片免费蜜桃AV按摩师 ,超碰 香蕉

帶有復(fù)選框的表單

代碼:

<!DOCTYPE html>

<html>

<body>

<%

fruits=Request.Form("fruits")

%>

 

<form action="demo_checkboxes.asp" method="post">

<p>Which of these fruits do you prefer:</p>

<input type="checkbox" name="fruits" value="Apples"

<%if instr(fruits,"Apple") then Response.Write("checked")%>>

Apple

<br>

<input type="checkbox" name="fruits" value="Oranges"

<%if instr(fruits,"Oranges") then Response.Write("checked")%>>

Orange

<br>

<input type="checkbox" name="fruits" value="Bananas"

<%if instr(fruits,"Banana") then Response.Write("checked")%>>

Banana

<br>

<input type="submit" value="Submit">

</form>

<%

if fruits<>"" then%>

   <p>You like: <%Response.Write(fruits)%></p>

<%end if

%>

 

</body>

</html>

結(jié)果:


相關(guān)文章