Does the above code work? if not what is the problem and/or error message. also if you put it in [CODE] tags in your post it makes it a lot easier for people to read it and spot problems.