F.5.5- Sample Check 03 - Groups of Check Boxes
by NT Community Manager.
|
| << F.5.4- Sample Check 02 - Multiple Independent Check Boxes | AppendixF | F.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):
|
|
| << F.5.4- Sample Check 02 - Multiple Independent Check Boxes | AppendixF | F.6.0- Option Buttons >> |

RSS


