|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
church site using PHP
I'm developing a site for local churches, and I need to find a way to have a drop menu that will select the church and then the main navigation will switch to the subdirectory of that church. Is there a way to do this using PHP? I'm just starting to use PHP to develop websites.
The test site is located at WileyComputers.com . |
|
#2
|
||||
|
||||
|
Well you can use PHP to write out the data for the popup menu. Its quite easy to write a script that lists all the files/folders in a folder and then generates links or something like that for them.
PHP Code:
That little script will list all files in the folder and make them links. It will not list itself or the . and .. folders. |
|
#3
|
|||
|
|||
|
Thanks! I haven't tried it out yet, but it looks like it should work for what I need it to do.
|
|
#4
|
|||
|
|||
|
i think you only need javascript to do that. for example: http://www.faithchurchguam.com.
|
|
#5
|
||||
|
||||
|
Andreas' code will give you a list of links. This should create a drop-down menu for you.
PHP Code:
I've copied your php code andreas. Hope you don't mind ![]() ~ishnid;
__________________
~ishnid; Have you tried: [ search.cpan.org | perldoc | Java API | mysql.com | google ] Apostrophes are NOT used for possessive pronouns or for noun plurals, including acronyms. |
![]() |
| Viewing: Dev Shed Forums > Other > Beginner Programming > church site using PHP |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|