Marriage in thailand ? possible or impossible

assalam o alikum

my dear friends i want to ask one question that my friend of friend she is bahraini nationality and she want to marry with foreigner iranian nationality ) , currently they are in thailand so is there any way to so they can marry there , or they should go bahrain embassay  to get some paper  works or permissions because i dont have idea about these cases , is it legal or illegal for them to marry in thailand ?

Any foreigner can get married in Thailand to a Thai person or two foreigners together.
There are Buddhist marriages that are not legal and legal marriage.
Yes, they must go to their respective embassy, get an affirmation that they can get married, translate it Thai and legalize it at the ministry of foreign affairs before getting married.

they can go to Iran embassy too

after embassies they have to go where  for complete there islamic marriage  in thailand because thailand is not a muslim country !

if they r religious they can have religious marriage inside the embassies or in a thai muslim center.are they onna stay in thailand?

nop just want 2   marry  :) thanks for helping