Posted by Scott Johnson on 11/14/05 15:49
Darren wrote:
> Hello,
>
> I am sure this subject has been done to death, but I would like to make
> sure that a form post is an interger or a float.
>
> I have used
>
> if (!ctype_digit($current_value)
>
> but this is true if the number contains a decimal point.
>
> I probably need a good tutorial/guide on form validation.
>
>
> Darren
>
How about using:
is_int() or
is_float()?
Navigation:
[Reply to this message]
|