Sentry
Update 04-02:
- Email-verificatie toegevoegd
- Minimaal aantal tekens toegevoegd: validateMinCharCount( $input, [limiet] );
- Maximaal aantal tekens toegevoegd: validateMaxCharCount( $input, [limiet] );
Simpel, klein, lichtgewicht class die (tot nu toe) controleert of een bepaalde input alleen cijfers, of cijfers en letters bevat.
Uitbreiding is mogelijk, kom maar op met suggesties!
Controle gaat gemakkelijk als volgt (voorbeeld):
Code (php)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
<?php
$Sentry = new Sentry;
try{
$Sentry->validateMix( 'adajkdna8y2q;7839&^*&');
$Sentry->validateNum( '22;' );
}catch(Exception $Sentry){
echo $Sentry->getMessage();
}
?>
$Sentry = new Sentry;
try{
$Sentry->validateMix( 'adajkdna8y2q;7839&^*&');
$Sentry->validateNum( '22;' );
}catch(Exception $Sentry){
echo $Sentry->getMessage();
}
?>
Gesponsorde koppelingen
PHP script bestanden
11 reacties op 'Sentry'
Om te reageren heb je een account nodig en je moet ingelogd zijn.
- Details
Door:
Dbr Br- 4 jaar geleden
- 340 x bekeken
- PHP scripts opties
- Overig
- Nieuwste PHP scripts
- PHP script toevoegen


PHP hulp
0 seconden vanaf nu