Php

richm8026

New Member
Messages
138
Reaction score
0
Points
0
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 =)
 

TheMan177

New Member
Messages
179
Reaction score
0
Points
0
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:

richm8026

New Member
Messages
138
Reaction score
0
Points
0
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..
 

dickey

New Member
Messages
128
Reaction score
0
Points
0
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:

richm8026

New Member
Messages
138
Reaction score
0
Points
0
Thanks, any help/suggestions, I'm willing to accept =) any extra help always works, I'm actually talking about one that has the Main Menu that can only be clicked to display links, not an OnMouseOver Effect, like an MouseOnClick or whatever the mouse command is for that...
 

sybregunne

Member
Messages
54
Reaction score
0
Points
6
are you sure you don't want the horizontal, hover one? I can give you the code now.
 

dickey

New Member
Messages
128
Reaction score
0
Points
0
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:

richm8026

New Member
Messages
138
Reaction score
0
Points
0
No, those are cool though, how did you get the Plus Sign next to it??? I'm talking about the accordion Based ones, you click the main Menu heading and that "Pushes" the Menu down
 

richm8026

New Member
Messages
138
Reaction score
0
Points
0
I have asked this question a few days ago or whenever, but, I can use a Menu in HTML and CSS, is there anyway I can give that Menu a Unique ID, such as and use a mouseover effect in PHP??? I really don't think I can, I looked in my PHP book and couldn't find nothing, maybe PHP doesn't support Mouseover effects...
 

xPlozion

New Member
Messages
868
Reaction score
1
Points
0
mouseover is strictly javascript and css. http://en.wikipedia.org/wiki/Mouseover

you can program so each menu will get its own id, but you cannot make anything dynamic in real time without some javascript, at least if you don't want to reload the page.

were you originally talking about when you click on a menu, not hover, that it makes a new menu?
 

richm8026

New Member
Messages
138
Reaction score
0
Points
0
No, when you hover the mouse over the "Main Menu" it'll drop down showing the Sub-Menu Items
 

xmakina

New Member
Messages
264
Reaction score
0
Points
0
Javascript, buddy. You *could* program your PHP code to output JavaScript, but that's about it. PHP is Server Side, it takes input (page requests, POSTs etc.) and makes output (the page you see). The only interaction with the user is through what the browser sends and recieves.

Javascript, however, is Client Side. It works with the users mouse, keyboard and computer to either display output in a certain way or to craft the input into the expected result.s
 
Top