Codice PHP:
<?php
if(!empty($_GET['user'] ) AND !empty($_GET['passwd']) )
{
mysql_connect ('','','') or die ('Connessione non avvenuta');
mysql_select_db ('utenti') or die ('Problemi a connettermi al database');
$insert = "INSERT INTO utenti VALUES (NULL, '$_GET[user]', '$_GET[passwd]')";
$result = mysql_query ($insert);
}
?>
<body>
<form action="" method="get">
<table width="301" height="104" border="1">
<tr>
<td>user</td>
<td><label>
<input type="text" name="user" />
</label></td>
</tr>
<tr>
<td>passwd</td>
<td><label>
<input type="password" name="passwd" />
</label></td>
</tr>
</table>
<label>
<input type="submit" name="Submit" value="Invia" />
</label>
</p>
</form>
</body>
</html>
@edit occhio che sta roba e' 'na schifezza .... tanto per farti capire la mimica e nulla piu'.