[thelist] Dumb PHP question.

Oliver Lineham oliver at lineham.co.nz
Wed Sep 13 18:33:47 CDT 2000

At 16:39 13/09/00 -0400, you wrote:

>I want to prevent users from entering anything but numbers (currency) into a
>form, commas and periods/ decimals are ok.

not dumb at all.

firstly i'll point you at http://www.php.net/manual/ref.var.php - you may 
be able to find a function to do what you want.

but if you want commas also, you might need to use a regular expression.


     v i b e   m e d i a    http://www.vibe.co.nz/
  po box 10-492              wellington, new zealand
  phone +64 21 210-7845         oliver at lineham.co.nz

More information about the thelist mailing list