popup menu help!!! how to make it in php???

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
ecxzqute
Forum Commoner
Posts: 29
Joined: Tue Oct 14, 2008 12:26 am

popup menu help!!! how to make it in php???

Post by ecxzqute »

good day guys!
im new in php and im currently making a page. i want to make a popup menu.. how do i make it? ex. 1(as main menu) and a,b,c,d... (as sub menus)

i rili need help guys...
thnks in advance!.
User avatar
Syntac
Forum Contributor
Posts: 327
Joined: Sun Sep 14, 2008 7:59 pm

Re: popup menu help!!! how to make it in php???

Post by Syntac »

You can't do it with PHP. Use JavaScript. Although I suppose you might be able to use Ajax as well, if the contents of the menu change often.
User avatar
califdon
Jack of Zircons
Posts: 4484
Joined: Thu Nov 09, 2006 8:30 pm
Location: California, USA

Re: popup menu help!!! how to make it in php???

Post by califdon »

ecxzqute wrote:good day guys!
im new in php and im currently making a page. i want to make a popup menu.. how do i make it? ex. 1(as main menu) and a,b,c,d... (as sub menus)

i rili need help guys...
thnks in advance!.
Are you referring to a popup navigation menu? That's a user operation, so it must be done with client-side code, like Javascript. Of course, PHP can be used to send the Javascript code to the browser, but PHP executes on the server and by the time the page reaches the browser, there is no more PHP in it.
ecxzqute
Forum Commoner
Posts: 29
Joined: Tue Oct 14, 2008 12:26 am

Re: popup menu help!!! how to make it in php???

Post by ecxzqute »

well, uhmm can anyone help me to make even just a simple sample of it? how am i going to make a popup menu using javascript? i really need help with this one.

anyway, thanks for the idea sir califdon! :D



---------------
ecx,
User avatar
califdon
Jack of Zircons
Posts: 4484
Joined: Thu Nov 09, 2006 8:30 pm
Location: California, USA

Re: popup menu help!!! how to make it in php???

Post by califdon »

ecxzqute wrote:well, uhmm can anyone help me to make even just a simple sample of it? how am i going to make a popup menu using javascript? i really need help with this one.

anyway, thanks for the idea sir califdon! :D

---------------
ecx,
Try Googling for javascript menu. You will find hundreds of variations and scripts like http://www.milonic.com/menusample2.php
ecxzqute
Forum Commoner
Posts: 29
Joined: Tue Oct 14, 2008 12:26 am

Re: popup menu help!!! how to make it in php???

Post by ecxzqute »

thank you sir caliifdon! :P
you've helped me alot!


___________________
ecx
Post Reply