Ordering-asp instance-learn from below
Date: August 17, 2004 author: popularity:
111
Select the fruit you want to order
Apple
Bananas
Pineapple
Orange
You did not order fruit
Source code:
<% @ Language = VBScript %>
<HTML>
<TITLE>
Order fruit
</TITLE>
<BODY>
Select the fruit you want to order
<Hr>
<Form action = "order. asp">
<Input name = "fruit" type = checkbox value = "apple"> Apple
<Br>
<Input name = "fruit" type = checkbox value = "banana"> bananas
<Br>
<Input name = "fruit" type = checkbox value = "pineapple"> pineapple
<Br>
<Input name = "fruit" type = checkbox value = "orange"> Orange
<Input type = submit value = "order">
</FORM>
<Hr>
<%
If Request. QueryString ("fruit"). Count = 0 then
%>
You did not order fruit
<% Else %>
You ordered
<%
For each fruit in Request. QueryString ("fruit ")
Response. write "<br> <font color = green>" & fruit & "</font>"
Next
End if
%>
</BODY>
</HTML>
The following learning channel browsing page is an html page, so normal asp code effects cannot be demonstrated. The above demonstration is a case after the code is explained through iis. You can test the effect by copying the code.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service