Hey guys, I'm trying to mix php and it's not working. I made a form that takes user input and changes the website they input to it's IP address. Next I tried to put that IP as a variable $ip and tried to put that variable in a link(href="") and the variable also as the link text. Heres the code:
<?php
$site = $_POST['site'];
$ip = gethostbyname($site);
?>
And then the link:
<a href"<?print $ip;?>"><?print $ip;?></a>
I can get it to just display the IP but I can't put it into a link.