PHP : validation de code postal de la France
Résolu/Fermé
Pascal_22
Messages postés
534
Date d'inscription
lundi 20 mars 2006
Statut
Membre
Dernière intervention
29 août 2014
-
19 mai 2010 à 16:42
rose0058 - 8 févr. 2011 à 13:00
rose0058 - 8 févr. 2011 à 13:00
A voir également:
- Code postal non valide
- Easy php - Télécharger - Divers Web & Internet
- \R php ✓ - Forum PHP
- Href php ✓ - Forum PHP
- Bouton php - Forum PHP
- Echo image php ✓ - Forum PHP
4 réponses
avion-f16
Messages postés
19246
Date d'inscription
dimanche 17 février 2008
Statut
Contributeur
Dernière intervention
21 avril 2024
4 497
19 mai 2010 à 17:47
19 mai 2010 à 17:47
<?php $codepostal = (int) $_POST['codepostal']; if($codepastal > 9999) // si $codepastal est plus grand que 9999, donc 10000 ou plus echo 'Ok'; else echo 'Pas ok';
Pascal_22
Messages postés
534
Date d'inscription
lundi 20 mars 2006
Statut
Membre
Dernière intervention
29 août 2014
54
19 mai 2010 à 20:13
19 mai 2010 à 20:13
Merci beaucoup pour votre réponse!
Pascal_22
Pascal_22