it is illegal .the company will have to face lot of problems if aperson who is working and recive spilted salary that too a another person name if any thing happends to him while he was in service either he has to recive the lowwer compensation or anything happend dto the personwho is not employee the company has to give more.