Thanks cpradio that works perfectly now.

Thank you very much, you have really helped a lot, and makes me wonder how long people like you have been at this php game, as although I'm trying my best it still doesnt match this sort of knowledge.

But thank you again.