Comma acts as a decimal

Ask about general coding issues or problems here.

Moderators: macek, egami, gesf

User avatar
New php-forum User
New php-forum User
Posts: 40
Joined: Tue Jan 10, 2012 3:00 pm

Comma acts as a decimal

Postby babygirl » Sun Oct 21, 2012 12:50 am

I have a calculator that is processed with php. The user enters numbers into an html form. The problem is when I enter a number with commas it treats the comma as a decimal. ie. 100,000 is treated as 100. Is there is a way to make the form accept commas as separators not decimals.

Return to “PHP coding => General”

Who is online

Users browsing this forum: No registered users and 6 guests