I have two buttons. If one button is clicked, part one of the file should be displayed. When the other button is clicked, the other part should be displayed.
And you have to be able to switch between those pages anytime.
Anyone an idea how to do this (in php)?
First of all: you really should express what you have already tried to achieve this and why things are not working. This is really basic stuff and after reading the PHP manual and some HTML tutorials, you really should be able to get this thing going on your own.
The easiest way would be to make your buttons include a different parameter:
And read out the parameter with PHP:
Disclaimer: I said easiest, not most elegant. 🙂