title: PHP - Domain to IP
body: <p>I current have a system which works like this:</p>
  
  <p>Insert IP and it will post the IP to another .php page. However, when I try post <a href="http://google.com" rel="nofollow">http://google.com</a> it does not turn the domain into a IP.</p>
  
  <p>How would I do that? E.g. when a user inserts <a href="http://google.com" rel="nofollow">http://google.com</a> or any domain it will auto resolve the IP.</p>
  
  <p>I know the function gethostbyadd, I dont know how to structure it out e.g. Forms, table, post data.</p>
  
  <p>Thanks if any can help.</p>