How can I center align a form thatI created?
$form = <<<END
<form method='post' action=''>
Adresa IP host : <input type='text' name='host'><br><br>
<input type='submit' name='submit' value='Connect'>
</form>
END;
echo $form;
$t = new TELNET();
if (!empty($_POST)){
$host = $_POST['host'];
echo("CONNECT:".$t->Connect($host, $name, $pass)."<br>");
echo("LOGIN:".(int)$t->LogIn());
echo("<br>Status Interfete:<br>");
$interfaces_status = ($t->GetOutputOf("show interface status"));
foreach ($interfaces_status as $value) {
echo "$value <br>";
I want the form to be on the center of the page.