I am a great believer in writing what I term 'dynamic' code; PHP and MySql together allow us to do this; with the help of CSS and Javascript at times.
Multi Select Bar Function
This function automatically builds a Javascript script from information stored in a MySql database. To see this in action please click here.
The Select Bar is at the top of the page and the visitor is invited to 'Select a Category'. Once this is done the visitor is then required to 'Select a Sub Category', and then finally 'Select a Link'. The 'GO' button then opens up an embeded link to the TV programme or film they have selected.
How I did this
The first step was to build the MySql tables to store the information I needed; I will not bore you with the details. Then I wrote the code to update these tables as required. Finally I wrote the code to automatically build the Javascript script from this information.
Adapting this code
I can adapt this code to build a Multi Select Bar for any purpose. The end result when 'GO' is pressed can take a visitor to any internal or external link as required.