Order things-ASP instance

Source: Internet
Author: User

Order Items-ASP instance-go down to learn

Date: August 17, 2004 Author: Popular: 111

 

Please select the fruit you want to order Apple
Banana
Pineapple
Orange You didn't order the fruit.

Source:

<%@ Language=vbscript%>
<HTML>
<TITLE>
Order Fruit
</TITLE>
<BODY>

Please select the fruit you want to order
<form action= "order.asp" >
<input name= "Fruit" type=checkbox value= "Apple" > Apple
<Br>
<input name= "Fruit" type=checkbox value= "banana" > Banana
<Br>
<input name= "Fruit" type=checkbox value= "pineapple" > Pineapple
<Br>
<input name= "Fruit" type=checkbox value= "Orange" > Orange
<input type=submit value= "Order" >
</FORM>
<%
If Request.QueryString ("fruit"). Count=0 Then
%>
You didn't order the fruit.
<%else%>
You ordered it.
<%
For each fruit in request.querystring ("fruit")
Response.Write "<br><font color=green>" & Fruit & "</font>"
Next
End If
%>
</BODY>
</HTML>

Since the next Learning Channel browsing the page as an HTML page, it is not possible to demonstrate the normal ASP code effect. The demo given above is a case where the code is interpreted by IIS. Users can copy the code and test the effect themselves.



Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.