Leave regitration tool using PHP