very basic summary of what you need for php:
- an html form, action set to your php file (can even be the same file)
- the php script consist a simple switch
- and then using include to fetch the relevant page
that should help you get started when you're going to use the php approach, if not let me know.