| << F.5.2- Common Errors with Check Boxes | AppendixF | F.5.4- Sample Check 02 - Multiple Independent Check Boxes >> |
Sample Check 01 – Single Check Box
The sample Check01Form.htm uses a single check box:
...
<BODY>
<H3>Check 01 Form</H3>
<FORM ACTION="Check01Response.asp" METHOD=GET>
<INPUT TYPE=CHECKBOX NAME="Swahili">Please show page in Swahili Language<BR>
<INPUT TYPE=SUBMIT>
</FORM></BODY>
...
|
The result is as follows:
|
|
Our response page is Check01Response.asp:
...
<BODY>
<H3>Check 01 Response</H3>
<%
If Request.QueryString("Swahili")="on" Then
Response.Write "Karibu"
Else
Response.write "Welcome"
End If
%></BODY>
...
|
And the result of checking the box and submitting the form is:
|
|
| << F.5.2- Common Errors with Check Boxes | AppendixF | F.5.4- Sample Check 02 - Multiple Independent Check Boxes >> |

RSS



