fohanlon Posted April 24, 2008 Share Posted April 24, 2008 Hi Guys I need to validate a price so int eh form field the following could be entered 45 45.56 45.6 .6 Any suggestons. Read a lot about preg_match but unsure how to allow for the decimal point. Many thanks, Fergal. Link to comment https://forums.phpfreaks.com/topic/102709-validate-a-price/ Share on other sites More sharing options...
JasonLewis Posted April 24, 2008 Share Posted April 24, 2008 So you want to make sure its a number? Can be done with is_numeric() Link to comment https://forums.phpfreaks.com/topic/102709-validate-a-price/#findComment-525946 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.