Codice PHP:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Documento senza titolo</title>
</head>
<body>
<?php
print ("<form action=\"" . $_SERVER['PHP_SELF'] ."\" method=\"GET\">");
print ("Utente: <input type=\"text\" name=\"utente\">
");
print ("Password: <input type=\"password\" name=\"password\">
");
print ("<input type=\"submit\" value=\"submit\" name=\"submit\"> ");
print ("</form> ");
?>
</body>
</html>
l ho testata personalmente e funziona.
se poi vuoi sempre mettere i tag legend e label mettili nella print ovviamente! ciao e fammi sapere!