Validating PHP URL variables

Hopefully this is a simple problem.

I have php page using includes that load content via url variables similar to

Right now if someone manually changes the variables in the url to say
it still loads the page minus the include content because the variable is wrong.

How do I check to make sure that the variable contents are correct and if not send them to an error page?