create dynamic pulldown menu?

From: Date: Thu, 07 Feb 2002 03:58:49 +0000
Subject: create dynamic pulldown menu?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-83802@lists.php.net to get a copy of this message
I am trying to create a pulldown menu based on the contents of a directory. Is there any way for PHP to read a directory and create the menu based on the files in that directory. It should create this menu dynamically each time the page is viewed, so if a file is deleted from that directory, it doesn't show up in the pulldown menu, if one is added, it shows up. So if the directory has two files in it, 1-2-2002.txt and 3-5-2002.txt, it will add these entries to the <select> menu: <option value="1-2-2002.txt">1-2-2002</option> <option value="3-5-2002.txt">3-5-2002</option> TIA John __________________________________________________ Do You Yahoo!? Send FREE Valentine eCards with Yahoo! Greetings! http://greetings.yahoo.com

« previous php.general (#83802) next »