Some of my very early PHP work so it's a little messy in the coding.