Codice PHP:
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>CSS3 Contact Form</title>
<link href="contact.css" rel="stylesheet" type="text/css">
</head>
<body>
<div id="contact">
<h1>contattaci</h1>
<form action="form.php" method="post" target="new">
<fieldset>
<label for="name">NOME :</label>
<input type="text" id="name" placeholder="Inserisci il tuo nome"/>
<label for="email">Email :</label>
<input type="email" id="email" placeholder="Inserisci la tua mail"/>
<label for="message">Messaggio:</label>
<textarea id="message" placeholder="Scrivi il tuo messaggio"></textarea>
<input type="submit" value="INVIA" />
</fieldset>
</form>
</div>
</body>
</html>
i tag input si specificano in questo modo:
Codice PHP:
<input type="" id="" name=""/>
Dove il name è quello che ottieni nella pagina ricevente, quindi oltre a id (che serve per il css) devi mettere name alle righe di name, email e nella textarea.