How can i make a drop down list, which when an option is selected, a small piece of PHP code will change.
For example, i have a number of different categories, in a news system (Cute News, most of you will probably know about it). To display the news from a certain category, you enter a small line of code into the PHP insert news code, which specifies the category. I want the visitor to be able to select a category from the drop down list, and for in a table below that, the news from that category to show.
So, all I really need is to be able to specify what code is to be displayed in the table for each value in the drop down list.
Hope this makes sense
Does anyone have any ideas, or code which does this?
Thanks.