Advertisement
Guest User

Untitled

a guest
Jan 21st, 2018
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.55 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <title></title>
  5. </head>
  6. <body>
  7. <?php
  8. /*echo $_POST['txtAge'] ;*/
  9.  
  10. function verificationAge ($txtAge){
  11. if (is_numeric($txtAge) && (($txtAge < 70) || ($txtAge >20)) )
  12. {
  13. echo "Vous avez l'age requis pour souscrire un crédit";
  14. }
  15. else if (is_numeric($txtAge) && (($txtAge > 70) || ($txtAge <20)) )
  16. {
  17. echo "Vous n'avez pas l'age pour souscrire un crédit";
  18. }
  19. else
  20. {
  21. echo "entrez un age valide";
  22. }
  23.  
  24. }
  25.  
  26.  
  27. if (isset($_POST["txtAge"])) {
  28. verificationAge($_POST["txtAge"]);
  29. }
  30. ?>
  31. </body>
  32. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement