Un modulo di registrazione per un servizio del web (forum, chat, …) richiede l’inserimento di
- alcuni dati anagrafici
- i dati personali per gli accessi successivi
Sono presenti gruppi di campi, etichette, stili, una tabella…
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 |
<form action="registrazione.php" method="post"> <table cellpadding="5"> <tr valign="top"> <td> <fieldset> <legend>DATI ANAGRAFICI</legend> Cognome<br /><input type="text" name="cognome" /><br /> Nome<br /><input type="text" name="nome" /> </fieldset> </td> <td> <fieldset> <legend>SESSO</legend> <input type="radio" name="sesso" value="m" checked/>Maschio<br /> <input type="radio" name="sesso" value="f" />Femmina<br /> </fieldset> </td> <td> <fieldset> <legend>INDIRIZZO</legend> Via <input type="text" name="via" /> num. <input type="text" name="num" size="4" /><br /><br /> CAP <input type="text" name="cap" size="5" maxlength="5"/> Città <input type="text" name="citta" /><br /><br /> Provincia <input type="text" name="provincia" /> </fieldset> </td> </tr> <tr> <td bgcolor="gray" colspan="3" style="color:white"> <fieldset> <legend style="color:white">DATI DI IDENTIFICAZIONE</legend> <p>Scegli le informazioni personali per l'accesso all'area riservata</p> <p>Nome utente <input type="text" name="login" /></p> <p> Password <input type="password" name="pwd1" /> riscrivi... <input type="password" name="pwd2" /></p> </fieldset> </td> </tr> <tr> <td align="center" colspan="3"> <br/>Completa la registrazione: <input type="submit" value="INVIA I DATI" /> <input type="reset" /> </td> </tr> </table> </form> |
Esercizio del 20/4/2020