如何使用组合框列出文件夹中的图像或使用浏览网页选择特定项目?

时间:2021-10-26 00:21:34

Im creating a data entry form, i would like to give them the option to select an image from a specific directory, in which they can select one image. now i have some image in one directory, i want to know how can i show them to the user.

我创建一个数据输入表单,我想给他们选择从特定目录中选择一个图像,他们可以选择一个图像。现在我在一个目录中有一些图像,我想知道如何向用户显示它们。

Please help

请帮忙

1 个解决方案

#1


0  

You would need to use a server-side language to read the contents of a directory (PHP, for instance). There are many ways of doing this with PHP.

您需要使用服务器端语言来读取目录的内容(例如,PHP)。使用PHP有很多方法可以做到这一点。

See http://php.net/manual/en/function.readdir.php

见http://php.net/manual/en/function.readdir.php

#1


0  

You would need to use a server-side language to read the contents of a directory (PHP, for instance). There are many ways of doing this with PHP.

您需要使用服务器端语言来读取目录的内容(例如,PHP)。使用PHP有很多方法可以做到这一点。

See http://php.net/manual/en/function.readdir.php

见http://php.net/manual/en/function.readdir.php