View Single Post
Old 14-07-2004, 16:33   #3
Mr_love_monkey
Inactive
 
Mr_love_monkey's Avatar
 
Join Date: Jun 2003
Location: London way
Age: 50
Services: Sarcasm
Posts: 8,376
Mr_love_monkey has a pair of shiny starsMr_love_monkey has a pair of shiny starsMr_love_monkey has a pair of shiny starsMr_love_monkey has a pair of shiny starsMr_love_monkey has a pair of shiny starsMr_love_monkey has a pair of shiny stars
Mr_love_monkey has a pair of shiny starsMr_love_monkey has a pair of shiny starsMr_love_monkey has a pair of shiny starsMr_love_monkey has a pair of shiny starsMr_love_monkey has a pair of shiny stars
Re: Filtering out comma's with PHP

Code:
 
<input name="price" type="text" value="0" onChange="this.value=this.value.replace(/,/g,'')"/>
will remove all the ',' from a field - basically /,/g is a regular expression to matching any ','s in the string - the g bit says do it all over the string, not just the first occurance.
Mr_love_monkey is offline   Reply With Quote