On 05-Apr-01 01:58:24, you wrote:
>I have a problem with a user input in a form required to be an
>integer, creating a variable for a mysql query.
>I have instances where integer, 0, is being typed as letter,o.
>The last discussion of validating the input was
>There it was suggested that the only way to validate the input was
>I tried fiddling with is_int($input) but of cause it does not serve
>Does anybody know if such validation can be done server side or
>definitely must be done client side?
You may want to try this PHP form generation and validation class that does
exactly what you need and more.
It does both client and server side validation. For the client side it
it uses the strcmp($value,strval(intval($value))) PHP functions .
Web Programming Components using PHP Classes.
Look at: http://phpclasses.UpperDesign.com/?[EMAIL PROTECTED]
E-mail: [EMAIL PROTECTED]
PGP key: http://www.mlemos.e-na.net/ManuelLemos.pgp
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]