home *** CD-ROM | disk | FTP | other *** search
/ Chip 2001 October / Chip_2001-10_cd1.bin / tema / global / overenie2.php < prev    next >
PHP Script  |  2001-05-20  |  631b  |  23 lines

  1. <?php
  2.     if(isset($result)) {
  3.         switch($result) {
  4.             case '0':    echo "domena je volna";
  5.                         break;
  6.             case '1':    echo "domena je obsadena";
  7.                         break;
  8.             default:    echo "chyba pri overovani";
  9.         }
  10.         die;
  11.     }
  12.     
  13.     if(isset($Submit)) {
  14.         $cesta = "http://www.yegon.sk/webpartner/checkdomain.phtml?domain=$domain&country=$country&return=http://$HTTP_HOST$REQUEST_URI";
  15.         header("Location: $cesta");
  16.         die;
  17.     }
  18. ?>
  19. <form action="<?php echo "http://$HTTP_HOST$REQUEST_URI"; ?>" method="post">
  20.     <input type="text" name="domain">.<input type="text" name="country" size="5"><br>
  21.     <input type="submit" name="Submit">
  22. </form>
  23.