Welcome Guest, Not a member yet? Register   Sign In
handling form values
#1

[eluser]crwtrue[/eluser]
Is this a good solution?

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.


Messages In This Thread
handling form values - by El Forum - 11-30-2009, 10:04 AM
handling form values - by El Forum - 11-30-2009, 10:33 AM
handling form values - by El Forum - 11-30-2009, 12:04 PM



Theme © iAndrew 2016 - Forum software by © MyBB