Page

F.5.3- Sample Check 01 - Single Check Box

  by NT Community Manager.
Last Updated  by Kevin Olbrich.  

PublicCategorized as Appendix F.

Not tagged.
<< 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:

 

Appendixf_image006

 

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:

 

Appendixf_image007

<< F.5.2- Common Errors with Check Boxes AppendixF F.5.4- Sample Check 02 - Multiple Independent Check Boxes >>

Copyright © 2003 by Wiley Publishing, Inc.

Powered by Near-TimeTerms of Services | Privacy Policy | Security Policy |