Advertisement
Aha2Y

Untitled

Feb 11th, 2012
446
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.23 KB | None | 0 0
  1. <form method="post" action="<?php echo $PHP_SELF;?>"><br/>
  2. <input type="text" size="20" maxlength="20" name="ip">
  3. <?php
  4.   $ip = $_POST["ip"];
  5.   $host = gethostbyname($ip);
  6.   echo "<input type='text' value='" .$host. "' />\n";
  7. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement