Mhtml
09-12-2002, 11:10 AM
Hi, I'm using an asp script to get all the folder names and file names in a directory and create a selection form from it.
How would I go about moving values from one select form to another?
If for some reason you need to look at the ASP script here it is..
<%
Dim fso, f, f1, fc, s, fk, f2, l
Set fso = CreateObject("Scripting.FileSystemObject")
Set f = fso.GetFolder(Server.MapPath("."))
Set fc = f.SubFolders
For Each f1 in fc
s = s & "<option>" & f1.name & "</option>"
Next
Set fc = f.Files
For Each f1 in fc
s = s & "<option>" & f1.name & "</option>"
Next
%>
<select size="12">
<%=s%>
</select>
How would I go about moving values from one select form to another?
If for some reason you need to look at the ASP script here it is..
<%
Dim fso, f, f1, fc, s, fk, f2, l
Set fso = CreateObject("Scripting.FileSystemObject")
Set f = fso.GetFolder(Server.MapPath("."))
Set fc = f.SubFolders
For Each f1 in fc
s = s & "<option>" & f1.name & "</option>"
Next
Set fc = f.Files
For Each f1 in fc
s = s & "<option>" & f1.name & "</option>"
Next
%>
<select size="12">
<%=s%>
</select>