First step is to get legal separation paper from your husband,this takes about a year or two i think depending on court. then if your bf finds job in Qatar, he will have his RP, he can buy a visa for you (visit or tourist) then you can go to Phil.Embassy based here and do all necessary formalities for marriage. Otherwise if he wants to married in Muslim tradition then he knows all the necessary thing based on their tradition or customs.