ANSWERS: 3
  • You don't. That's a task for CSS and Javascript.
  • Well, providing you know how to use CSS and Javascript to make a drop down menu, it might be a good idea to use PHP to make use of OOP (Object Oriented Programming). For example, you could create a DropMenu class which has an array of MenuItems. Menu might have an add() function to add new MenuItems to it, and at the DropMenu class could have a function draw() to echo the required code/mark-up.

Copyright 2023, Wired Ivy, LLC

Answerbag | Terms of Service | Privacy Policy