Yes you are right, before I see your reply I just removed that part to just <form method="post" enctype="multipart/form-data" id="deluser"> tried on the server and it workd! I was confused that it was working on localhost and not on the remote server and for this reason it took longer for me to figure out the problem. Thank a lot.