Post Variables with commma
Posted: Tue Dec 16, 2003 9:06 am
I have a page where a user posts a dollar amount. However, I had always assumed the user would enter a dollar amount without commas, decimal places, or dollar signs...I was wrong.
How can I check there input and remove any of these rogue characters?
I am using the post method on the frontpage form. Thanks
For instance...suppose they enter: $200,000.00
I want a variable to just take the integer value: $input=200000;
How can I check there input and remove any of these rogue characters?
I am using the post method on the frontpage form. Thanks
For instance...suppose they enter: $200,000.00
I want a variable to just take the integer value: $input=200000;