Re: create dynamic pulldown menu?

From: Date: Thu, 07 Feb 2002 04:02:40 +0000
Subject: Re: create dynamic pulldown menu?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-83805@lists.php.net to get a copy of this message
On Thursday 07 February 2002 11:58, John P. Donaldson wrote: > 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> Have a look at the chapter on "Filesystem Functions". -- Jason Wong -> Gremlins Associates -> www.gremlins.com.hk /* As he had feared, his orders had been forgotten and everyone had brought the potato salad. */

« previous php.general (#83805) next »