F.5.4- Sample Check 02 - Multiple Independent Check Boxes
Created
by Brendan Doss.
|
| << F.5.3- Sample Check 01 - Single Check Box | AppendixF | F.5.5- Sample Check 03 - Groups of Check Boxes >> |
Sample Check 02 – Multiple Independent Check Boxes
We can extend the previous sample to use multiple independent check boxes:
...
<BODY>
<H3>Check 02 Form</H3>
<FORM ACTION="Check02Response.asp" METHOD=GET>
<INPUT TYPE=CHECKBOX NAME="Swahili">Please show page in Swahili Language<BR>
<INPUT TYPE=CHECKBOX NAME="LargePrint" CHECKED>Please show greeting in Large Type<BR>
<INPUT TYPE=SUBMIT>
</FORM></BODY>
...
Note that the box named LargePrint is checked when the page loads. The response page is Check02Response.asp:
...
<BODY>
<H3>Check 02 Response</H3>
<%
If Request.QueryString("LargePrint")="on" Then
Response.Write "<H2>"
End If
If Request.QueryString("Swahili")="on" Then
Response.Write "Karibou"
Else
Response.write "Welcome"
End If
If Request.QueryString("LargePrint")="on" Then
Response.Write "</H2>"
End If
%></BODY>
...
|
And if we submit the form without changing anything we get something like this:
|
|
| << F.5.3- Sample Check 01 - Single Check Box | AppendixF | F.5.5- Sample Check 03 - Groups of Check Boxes >> |

RSS

