http://nokidding.websiteallies.com/bankingcalc.html
I have a calculator that I have made, when someone enters a comma in with any of the text, it doesn't calculate right anymore. So how do i search text for a ","?
Searching text
Moderator: General Moderators
- feyd
- Neighborhood Spidermoddy
- Posts: 31559
- Joined: Mon Mar 29, 2004 3:24 pm
- Location: Bothell, Washington, USA
you mean enters a comma in a number? strip the text field of all non-numbers.. or error out..
Code: Select all
$text = preg_replace('#\D#', '', $text);-
anthony88guy
- Forum Contributor
- Posts: 246
- Joined: Thu Jan 20, 2005 8:22 pm