YVES SUCAET wrote:
> Nope, it's not. The problem was formulated as "Integer" detection. not
> numerical detection in general.
this must be able via preg_match
(http://de3.php.net/manual/en/function.preg-match.php)
using the regular expression /[1-9]/ possible [0] in addition.
Regards,
Ruprech
for e.g.
> floating
> point values as well. The solutions described in this thread all result in
> integer-only values.
>
> All solutions presented are still off-topic, of course...
>
> Yves
>
> -- Original Message ------
> Received: Mon, 12 May 2008 11:12:02 AM CD
l off-topic, of course...
Yves
-- Original Message --
Received: Mon, 12 May 2008 11:12:02 AM CDT
From: "Thiago Pojda" <[EMAIL PROTECTED]>
To: "'sahabettin akca'" <[EMAIL PROTECTED]>,
Subject: RES: [PHP-DB] input field validation
It'd be simpl
p.net
Assunto: Re: [PHP-DB] input field validation
hi,
*javascript function :
function isNumber(obj) {
var len = obj.value.length;
var lastChar = obj.value.charAt(len-1);
if( lastChar != '0' && lastChar != '1' && lastChar !=
t;header: .php");
#or
print"";
}
else
{
}
2008/5/11 Yves Sucaet <[EMAIL PROTECTED]>:
> Allow me to point out that this is not database-related...
>
> This website should get you everything you want:
> http://www.acmesoffware.com/acme/ExamplesJS/jsExm_ValidateInteger
ay, May 11, 2008 12:48 AM
Subject: [PHP-DB] input field validation
hi,
i want to input only integer in my field.if without integer any
input put in the field it will show warning messege.
such as "12 "will be accept
but "12sds" will not accept .
"fhe34" will n
hi,
i want to input only integer in my field.if without integer any
input put in the field it will show warning messege.
such as "12 "will be accept
but "12sds" will not accept .
"fhe34" will not accept
plz help me by any javascript code.
--
PHP Database Mailing List (http://www.php.net/)
To