PHP vérif champ facultatif renseigné
Résolu
callahan75
Messages postés
28
Date d'inscription
Statut
Membre
Dernière intervention
-
callahan75 Messages postés 28 Date d'inscription Statut Membre Dernière intervention -
callahan75 Messages postés 28 Date d'inscription Statut Membre Dernière intervention -
A voir également:
- PHP vérif champ facultatif renseigné
- Verif lien - Guide
- Easy php - Télécharger - Divers Web & Internet
- Expert php pinterest - Télécharger - Langages
- Email facultatif - Guide
- Verif ligne tel panasonic - Forum telephonie fixe
if (!empty ($_POST['tel']) && !preg_match("/^[\d\s]{10,}$/",trim($_POST['tel'])))
$erreur .= "Merci de vérifier le format du champ <b>Tél</b><br/>";
Par contre je n'ai pas bien saisi le fonctionnement de l'action/condition if (!preg_match) contenue dans un autre if.
...ça viendra !
if(condition 1 AND condition2){
if(condition 3){
instructions....
}
if(condition 4){
instructions...
}
}
Merci à toi.