[Ajuda] Permitir somente nъmeros
#2

Use:
PHP код:
if(!IsNumeric(inputtext)) return 1
no final do gm caso nгo tenha:

PHP код:
forward IsNumeric(const string[]);
public 
IsNumeric(const string[])
{
    for (new 
0strlen(string); ji++) if(string[i] > '9' || string[i] < '0') return 0;
    return 
1;

Reply


Messages In This Thread
Permitir somente nъmeros - by nasser - 20.06.2018, 16:23
Re: Permitir somente nъmeros - by LeViNS - 20.06.2018, 16:36
Re: Permitir somente nъmeros - by SammyJ - 20.06.2018, 16:36
Re: Permitir somente nъmeros - by nasser - 21.06.2018, 16:43
Re: Permitir somente nъmeros - by SmokeKiLL - 24.06.2018, 21:12
Re: Permitir somente nъmeros - by JhonnyMonroe - 24.06.2018, 21:39
Re: Permitir somente nъmeros - by Bruno13 - 25.06.2018, 13:58

Forum Jump:


Users browsing this thread: 4 Guest(s)