View Full Version : Listing image from a directory on server
Sintsof
01-05-2003, 10:10 AM
Hi,
I want to see my image, i used before in a directory on server. For example i used a picture before that, may be i'll use it again. So i should see it to use.
I should see the picture list and when i click one of them it's name should come in my textfield which i allocated for it.
How can i do that?
whammy
01-05-2003, 03:15 PM
Somehow you missed the sticky post here:
http://www.codingforums.com/showthread.php?s=&threadid=8736
That should give you everything you need to know to do this! :D
Sintsof
01-06-2003, 08:52 AM
But i don't want see just its names. I wanna see thumbnails like win 2000. I should see the images because of to decide which can i use.
Understand me? :(
glenngv
01-06-2003, 09:08 AM
...then put the names inside the <img> tag!
you were presented with the basic principle to accomplish what you want, it's up to you to expand on it to do EXACTLY what suits your need. That's the essence of learning. :)
<%
dim fs,fo,x
set fs=Server.CreateObject("Scripting.FileSystemObject")
set fo=fs.GetFolder("c:\test\")
for each x in fo.files
'Print the name of all files in the test folder
Response.write("<img src=""" & x.Name & """ width=""100"" height=""100""/><br />" & VbCrLf)
Response.write(x.Name & VbCrLf)
next
set fo=nothing
set fs=nothing
%>
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.