in reply to Parental Variables

Sounds like you need to read Coping with Scoping.