Thanks faisal you are a great guy indeed. Wish there were more people like you to guide us But i have another problem i want to control the client's IP for giving permission to a static range of IPs but i can not manage to do it. (i've used getRemoteAdress() but i doesn't work!!!)