Jump to content

Multi level drop down from an array


etrader

Recommended Posts

I want to have a multi level dropdown selection tool come out of an array (not database; almost all of available codes on the internet are based on mysql databse). I have an array as each element has this format: "Country | City | ID". Using explode, I want to make a dropdown to choose the country, then choosing the cities of the chosen country. Finally, in a simple search box make action="result.php" to lead to result.php?q=$id

 

Thanks for your kind attention  :shy:

Link to comment
https://forums.phpfreaks.com/topic/231230-multi-level-drop-down-from-an-array/
Share on other sites

I made a menu with an array of directories and files. the code is in my post here http://www.phpfreaks.com/forums/index.php?topic=327381.0, I cleaned it and fixed all the issues I had since then. It puts out a menu like the one in the attachment.

Good luck.

 

[attachment deleted by admin]

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.