<?php $lookup = ''; $domain = ''; if (isset($_POST['submit']) { $domain = $_POST['domain']; $lookup = gethostbyname($domain); } ?>