Re: [PHP] Detecing a Number

2002-12-04 Thread Ray Hunter
If you are getting a number from a user via a form you can use javascript to verify that the user inputed a number... search google -> validating forms that should give you some info. You could also verify that the data is a number by is_numeric or is_int... I think that when the data is POSTed

[PHP] Detecing a Number

2002-12-04 Thread Stephen
I have a repeating function to add. The user enters the number of how many numbers they want to add, then it repeats a form field. What I want to do is detect to make sure that the value they enter is a number. If not, don't do the do while loop and if it is, then go ahead and do it. How can I do t