I have a form that has an input field where user can submit a decimal value like 12.12 and this value is then inserted to mysql table. The problem is if user use comma in his value like 12,12. So i was thinking of doing a if-else check with regular expression to change value that has comma to dot.