...

View Full Version : Have my form read the file names from a directory and list in a menu?



jreitz
09-20-2005, 10:44 PM
Ok, Is it possible that a form could load the names of files in a directory on my webserver as lables and values so i user could choose one to submit when they submit the form?

I have built a scheduling system in PHP using MySQL and want to be able to add photos to the records display. It would only need to read one specified directory and then add the names of the files to the values.

thanks!

Nightfire
09-20-2005, 10:54 PM
This is a php question, so should've been asked there :)

You'll need the readdir function to do what you want. http://www.php.net/readdir

macmonkey
09-21-2005, 07:33 PM
try to google this w/ php tutorial and you'll get tons of examples. If you are going to regularly do things like this you'll definately want to learn php - it's amazing.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum