Page

F.5.5- Sample Check 03 - Groups of Check Boxes

  by NT Community Manager.
Last Updated  by Kevin Olbrich.  

PublicCategorized as Appendix F.

Not tagged.
<< F.5.4- Sample Check 02 - Multiple Independent Check BoxesAppendixFF.6.0- Option Buttons >>

Sample Check 03 - Groups of Check Boxes

Check03Form.htm uses multiple choice checkboxes:

 

...

<BODY>

<H3>Check 03 Form</H3>

Please Czech the cities you would like to visit

<FORM ACTION="Check03Response.asp" METHOD=get>

<INPUT TYPE=Checkbox NAME="Cities" VALUE="Prague">Prague<BR>

<INPUT TYPE=Checkbox NAME="Cities" VALUE="Cheb" Checked>Cheb<BR>

<INPUT TYPE=Checkbox NAME="Cities" VALUE="Kladno">Kladno<BR>

<INPUT TYPE=Checkbox NAME="Cities" VALUE="Mlada">Mlada<BR>

<INPUT TYPE="SUBMIT">

</FORM></BODY>

...

 

And the response page is Check03Response.asp:

 

...

<BODY>

<H3>Check 03 Response</H3>

We will schedule your itinerary for:<BR>

<%

For iCityCount=1 to Request.QueryString("Cities").COUNT

Response.Write Request.QueryString("Cities")(iCityCount)

Response.Write " "

Next

%></BODY>

...

 

 

This gives the following result if the first, third and fourth cities are checked (and the second is unchecked):

 

Appendixf_image009

 

<< F.5.4- Sample Check 02 - Multiple Independent Check BoxesAppendixFF.6.0- Option Buttons >>

Copyright © 2003 by Wiley Publishing, Inc.

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