Thanks Rick. That looks like it will do it.
Plus I never used php inserts before so I can learn a little about that too!