Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html>
- <head>
- <title></title>
- </head>
- <body>
- <?php
- /*echo $_POST['txtAge'] ;*/
- function verificationAge ($txtAge){
- if (is_numeric($txtAge) && (($txtAge < 70) || ($txtAge >20)) )
- {
- echo "Vous avez l'age requis pour souscrire un crédit";
- }
- else if (is_numeric($txtAge) && (($txtAge > 70) || ($txtAge <20)) )
- {
- echo "Vous n'avez pas l'age pour souscrire un crédit";
- }
- else
- {
- echo "entrez un age valide";
- }
- }
- if (isset($_POST["txtAge"])) {
- verificationAge($_POST["txtAge"]);
- }
- ?>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement