Ciao a tutti.
Ancora in javascript sono alle prime armi
Volevo sapere come si fa a mostrare un alert in caso i campi di un form non siano stati riempiti:
Codice PHP:
<table width="300px">
<tr><td width="50%">Nome:</td><td width="50%"><input type="text" name="nome" /></td></tr>
<tr><td width="50%">Cognome:</td><td width="50%"><input type="text" name="cognome" /></td></tr>
<tr><td width="50%">Password:</td><td width="50%"><input type="password" name="pass" /></td></tr>
<tr><td width="50%">Email:</td><td width="50%"><input type="text" name="mail" /></td></tr>
</table>