Wenn ich auf Senden drücke, wird nichts angezeigt?
PHP Code:
<form action="tools.php" method="post">
<table>
<th>
<td><font color="white">IP:</font></td>
<td><input type="text" name="ip" /></td>
</th>
<th>
<td></td>
<td><input type="submit" Value="Senden" name="submit"/></td>
</th>
</table>
</form>
<br /><br /><br />
PHP Code:
<?php
$ip = $_POST['ip'];
if (isset($_POST["submit"]))
{
if (!$socket = @fsockopen($ip, 80, $errno, $errstr, 30))
{
echo "<font color='red'><strong>" .$ip. "Offline!</strong></font>";
}
else
{
echo "<font color='green'><strong>" .$ip. "Online!/strong></font>";
fclose($socket);
}
}
?>