I have a form that hands data to a php file for the purpose of writing a transaction to a mysql database- The problem is fixing the user-entered data from the form, specifically:
numeric amounts representing dollars and cents are entered into a form...
1000 entered works fine...
1000.10 entered works fine
1,000.1 causes an improper value
how can I easily handle the various formats a user might enter reliably???
TIA,
-Allen M.
numeric amounts representing dollars and cents are entered into a form...
1000 entered works fine...
1000.10 entered works fine
1,000.1 causes an improper value
how can I easily handle the various formats a user might enter reliably???
TIA,
-Allen M.