<html>
<body>
<FONT COLOR=#ff0000><%
fruits=Request.Form("fruits")
%></FONT>
<form action="demo_checkboxes.asp" method="post">
<p>Which of these fruits do you prefer:</p>
<input type="checkbox" name="fruits" value="Apples"
<FONT COLOR=#ff0000><%if instr(fruits,"Apple") then Response.Write("checked")%></FONT>>
Apple
<input type="checkbox" name="fruits" value="Oranges"
<FONT COLOR=#ff0000><%if instr(fruits,"Oranges") then Response.Write("checked")%></FONT>>
Orange
<input type="checkbox" name="fruits" value="Bananas"
<FONT COLOR=#ff0000><%if instr(fruits,"Banana") then Response.Write("checked")%></FONT>>
Banana
<input type="submit" value="Submit">
</form>
<FONT COLOR=#ff0000><%
if fruits<>"" then%></FONT>
<p>You like: <FONT COLOR=#ff0000><%Response.Write(fruits)%></FONT></p>
<FONT COLOR=#ff0000><%end if
%></FONT>
</body>
</html>