RE: [PHP] dynamic menu possible?
Your wanted solution is seen in the "phpXML" demo, by Michael P. Mehl. It is founded at the http://www.phpxml.org/. Try the exciting "xpath" example! > -Original Message- > From: LRW [mailto:[EMAIL PROTECTED]] > Sent: Sunday, September 16, 2001 4:24 PM > To: [EMAIL PROTECTED] > Subject: [PHP] dynamic menu possible? > > > Hi all. > I was wondering if a situation I'll describe below is possible. If it is, > I'm hoping someone could point me to the topics I would need to study to > learn how to do it. I hate to say that right now I don't have the time to > read the Manual or any books cover-to-cover to figure it > out...but I do want > to learn how to do things on my own. So if someone could just tell me what > the items I'd need to study are called, I'd really appreciate it. > > What I want to do is have a drop-down menu where the options are files > located in a folder on the server that changes as items are added to or > removed. Then the user can select an item from the menu, submit, and that > page will load. > Did that make sense? > So I have 1.htm and 2.htm and 3.htm in a folder. A selectable > menu reads the > folder and lists those three files as options. The user can click > on it and > submit and that page will load. And if I add 4.htm, the menu will add that > to the drop down on its own. > > That that's not possible, how close can I get to something like that? > An example of something close to that I found on www.megatokyo.com . They > have a dropdown menu where a user selects an item and gets sent to that > page. A URL from one attempts shows as > http://www.megatokyo.com/index.php?date=2001-09-04 . How is that done? > > Again, if I could just be pointed to the related PHP concepts I'll take it > from there. > Thanks! > Liam > www.celticbear.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] dynamic menu possible?
Whell, you could use that php script for getting file names and put links toward those files in a layer, which can be controled with java. If you are not a java expert, you can do it with macromedia dreamweaver + extensions. I don't know java, but I made a layer based site at http://www.okspartak.f2s.com/moj/ The best thing is that extensions are free ! If you are not sure in the number of files, you can use those ext. to make a scrollable meny, which can be a very attractive detail. Cheers Nikola 9/16/01 4:24:22 PM, "LRW" <[EMAIL PROTECTED]> wrote: >Hi all. >I was wondering if a situation I'll describe below is possible. If it is, >I'm hoping someone could point me to the topics I would need to study to >learn how to do it. I hate to say that right now I don't have the time to >read the Manual or any books cover-to-cover to figure it out...but I do want >to learn how to do things on my own. So if someone could just tell me what >the items I'd need to study are called, I'd really appreciate it. > >What I want to do is have a drop-down menu where the options are files >located in a folder on the server that changes as items are added to or >removed. Then the user can select an item from the menu, submit, and that >page will load. >Did that make sense? >So I have 1.htm and 2.htm and 3.htm in a folder. A selectable menu reads the >folder and lists those three files as options. The user can click on it and >submit and that page will load. And if I add 4.htm, the menu will add that >to the drop down on its own. > >That that's not possible, how close can I get to something like that? >An example of something close to that I found on www.megatokyo.com . They >have a dropdown menu where a user selects an item and gets sent to that >page. A URL from one attempts shows as >http://www.megatokyo.com/index.php?date=2001-09-04 . How is that done? > >Again, if I could just be pointed to the related PHP concepts I'll take it >from there. >Thanks! >Liam >www.celticbear.com > > > >-- >PHP General Mailing List (http://www.php.net/) >To unsubscribe, e-mail: [EMAIL PROTECTED] >For additional commands, e-mail: [EMAIL PROTECTED] >To contact the list administrators, e-mail: [EMAIL PROTECTED] > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] dynamic menu possible?
> What I want to do is have a drop-down menu where the options are files This is matter of HTML or JavaScript > located in a folder on the server that changes as items are added to or > removed. Then the user can select an item from the menu, submit, and that > page will load. This is script for writing all files located in a folder: $folder = "c:/borland/"; $dir = opendir($folder); while ($file = readdir($dir)) { echo $file.""; } > Did that make sense? > So I have 1.htm and 2.htm and 3.htm in a folder. A selectable menu reads the > folder and lists those three files as options. The user can click on it and > submit and that page will load. And if I add 4.htm, the menu will add that > to the drop down on its own. > > That that's not possible, how close can I get to something like that? > An example of something close to that I found on www.megatokyo.com . They > have a dropdown menu where a user selects an item and gets sent to that > page. A URL from one attempts shows as > http://www.megatokyo.com/index.php?date=2001-09-04 . How is that done? > > Again, if I could just be pointed to the related PHP concepts I'll take it > from there. Try to start here: http://www.php.net/manual/en/ref.dir.php http://www.php.net/manual/en/ref.filesystem.php Lubo -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]