I'm glad you worked it out Geoff.
To answer your earlier questions:
- It is not possible to solve this with CSS, bar using horrible 'display: none' attribute and value on the appropriate selector.
- A good place to learn PHP is W3Schools: www.w3schools.com/php.
Cheers,
Gareth