/    Sign up×
Community /Pin to ProfileBookmark

Drop down menu in php ???

Hi all !!!
I was wondering…
Is it possible to create a drop-down menu with php, or something close to it ???
It would be the greatest thing on earth…
Ness

to post a comment
PHP

3 Comments(s)

Copy linkTweet thisAlerts:
@ShmohelMay 25.2005 — Hi all !!!

I was wondering...

Is it possible to create a drop-down menu with php, or something close to it ???

It would be the greatest thing on earth...

Ness[/QUOTE]


PHP is server side, so dynamically changing items on the client side are not possible like it is with Javascript. Now, if you wanted, you could use php integrated with your Javascript to create the menu. But it would still be a Javascript menu.
Copy linkTweet thisAlerts:
@NogDogMay 25.2005 — PHP is probably not the best way, since it's running on the server and you probably want something running on the client. You might want to take a look at the "[url=http://www.alistapart.com/articles/dropdowns/]suckerfish[/url]" method.
Copy linkTweet thisAlerts:
@Ness_du_FratauthorMay 25.2005 — mmm...

Ok, by looking on the web, I found only one solution for php menus, and it's a tree-like menu, which can still be cool, but I don't understand how to use it, cause the script they provide is made to be opened with something called phplib, which I don't have... ( and one look at the installation explanation doesn't give me any positive feelings towards its installation... )

So, as I have only 7 states for my menu, I'll just make seven php menus...

anyway, as I'll have to load the whole page each time ( I won't be using any frames for this one ), I guess it doesn't really make a difference. It's just css... and li tags.

Thanks !!!
×

Success!

Help @Ness_du_Frat spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 6.17,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @nearjob,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,
)...