Dropdown navigation bar with mysql results that also acts as a form to another page


I have a bit of a long one that all together is creating a few problems.

I have a navigation bar as follows:


it works perfectly all buttons navigate to certain pages and theres a search bar that is used to find users from a mysql search (code not shown).

What i would like to happen now and which I'm struggling on