Advertisement
vencinachev

IBAN - index.php

Mar 31st, 2021
955
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.63 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html>
  3.   <head>
  4.     <title>IBAN CHECK</title>
  5.   </head>
  6.   <body>
  7.     <h2>ВАЛИДАЦИЯ НА IBAN - БЪЛГАРИЯ</h2>
  8.     <form action="#" method="post">
  9.        IBAN: <input type="text" name="iban">
  10.        <input type="submit" name="validate" value="ПРОВЕРИ">
  11.     </form>
  12.     <?php
  13.        include("ibanchecker.php");
  14.        if (isset($_POST["validate"])){
  15.            if(checkIBAN($_POST["iban"])){
  16.                echo "<p style='color: green;'>". $_POST["iban"] . " е валиден IBAN<p>";
  17.            } else {
  18.                 echo "<p style='color: red;'>". $_POST["iban"] ." е невалиден IBAN<p>";
  19.            }
  20.        }
  21.     ?>
  22.   </body>
  23. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement