Three functions-array assignment-drop-down list output-take Drive

Source: Internet
Author: User
<TITLE> New Document </TITLE>
<Meta name = "Generator" CONTENT = "EditPlus">
<Meta name = "Author" CONTENT = "">
<Meta name = "Keywords" CONTENT = "">
<Meta name = "Description" CONTENT = "">
Body {text-align: left; font: 12px #000080 ;}
# Main {float: left; width: 680px; border: # 0000ff 1px solid; margin: 5px 20px; padding: 10px 100px ;}
# Main p {}
<Div id = "main">
'Option Explicit
Select case request ("actionname ")
Case "search"
Call find (request ("dirname "))
Case "enter"
Call enterdir (request ("dirname "))
Case otherwise
Call showmain ()
End select

Actionarray = storearrayvalue ("search, search, let's go, go ",",")
Drvname = split (showdrivelist ,",")
Response. write "<form name = drv action = find. asp>"
Response. write writeselect (actionarray, actionname)
Response. write writeselect (drvname, dirname)
Response. write "<input type = submit name = action value = start> </form>"
'This function is used to assign values to the array. arrayvalue is the string value to be assigned, and splitmethod is the basis for separating this string.
Function storearrayvalue (arrayvalue, splitmethod)
Storearrayvalue = split (arrayvalue, splitmethod)
End function
'This function returns the drop-down list string. arrayname indicates the name of the input array, and sltname indicates the name of the drop-down list.
Function writeselect (arrayname, sltname)
Dim slt, I
Slt = "<select name =" & sltname & ">"
For I = 0 to ubound (arrayname)
Slt = slt & "<option value =" & arrayname (I) & ">" & arrayname (I) & "</option>"
Slt = slt & "</select>"
Writeselect = slt
End function
Related Article

E-Commerce Solutions

Leverage the same tools powering the Alibaba Ecosystem

Learn more >

Apsara Conference 2019

The Rise of Data Intelligence, September 25th - 27th, Hangzhou, China

Learn more >

Alibaba Cloud Free Trial

Learn and experience the power of Alibaba Cloud with a free trial worth $300-1200 USD

Learn more >

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: and provide relevant evidence. A staff member will contact you within 5 working days.