Can you write Drop-Down Menus using PHP? I like PHP better than JavaScript, but it appears that JavaScript is the best way to go, if you can use PHP, I'll use that instead =)
An actual drop down menu must use client-side technologies to display in a web browser, PHP is a server side language, it is processed by the server and its output is sent to your web browser. The language itself cannot actually make a menu.
If you're asking whether its possible, for example, to populate a menu dynamically with PHP, than yes, you certainly can.
Last edited by TheMan177; 10-25-2008 at 12:45 AM.
What I was actually asking is if I can create the menus with a Unordered, or Ordered list, and then give the list an ID such as <ul id="menu"> And, then use PHP to make it drop down, but I am assuming you can't do onmouseover events with PHP... Anyway, enough on PHP, how can I make a Vertical Sliding Menu that only functions clicking a link/button???? Not move when you roll the mouse over it, but instead making it so you have to click the Main Heading Button, using JavaScript, After you click the button, the Menu hiding under the main heading is done how?? I also found those type of Menus Fascinating and would love to learn how to do those, using the same ID name MENU, I usually create the menus using CSS, I love to use CSS, so when I use #menu, that's the whole menu stuff which I usually use #menu { position: absolute; } and then so on so forth with the main heading names and sub-menu names, I know this is probably a pretty tedious question, I really don't know the most easiest way to explain it..
Thread Moved to Programming Help
I can help you but it isn't javascript and it isn't php. If you are interested I can help you with a css/html dropdown menu.
But I guess it works well when using strict Html. If you are interested post here again.
edit:
Seeing that you need a vertical one. hmmm. I need to do a css/html/javascript one. and I'll get back to you maybe later.
Last edited by dickey; 10-27-2008 at 10:57 PM.
are you sure you don't want the horizontal, hover one? I can give you the code now.
Hmm I think I am confused now... I will try googling for an answer. as I cannot seem to make what you are asking for work. I must be doing something wrong. If you find an answer can you post it here also.![]()
Last edited by dickey; 10-28-2008 at 03:55 AM.
This link may get your started:
http://www.mattkruse.com/javascript/mktree/
Two rules of development:
1) Computers work for people; People do not work for computers
2) Maintainability is all that matters.