Codice PHP:
<?
include("config.php");
if (isset($_POST['registra']))
{
$INSERT = mysql_query("INSERT INTO users (Username)VALUES ('$username')",$db);
//altro codice
echo "Dato aggiornato con successo";
die();
}
else
{
?>
<html>
<head>
<title>Login</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
<form name="form1" method="post" action="login.php">
<input name="username" type="text" class="boxes" value="<?=$username;?>">
Nome</p>
<input type="submit" name="registra" value="registra" class="buttons">
</p>
</form>
</body>
</html>
<?
}
?>
questa pagina chiamala login.php