Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html>
- <head>
- <title>Impot</title>
- <meta charset="utf-8" />
- </head>
- <body>
- <?php
- include "library.php";
- if((!isset($_POST["nom"]) and $_POST["nom"] != "")
- or (!isset($_POST["revenu"]) and $_POST["revenu"] != "")
- or (!isset($_POST["civilite"]) and $_POST["civilite"] != "")){
- ?>
- <form method="post" action="impot.php">
- <insput type = "radio" name = "civilite" />Monsieur<insput type = "radio" name = "civilite" />Madame
- <input type = "text" placeholder = "Saisir nom" required name = "nom" />
- <input type = "text" placeholder = "Saisir revenu" required name = "revenu" />
- <input type = "submit" value = "Calculez !" />
- </form>
- <?php
- }
- else{
- $civilite = $_POST["civilite"];
- $nom = $_POST["nom"];
- $revenu = $_POST["revenu"];
- $imp = new Impot($nom, $revenu);
- echo $civilite . " " . $imp->;
- }
- ?>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement