JavaScript - Example form

Example form

This is an example form. I play slightly false here: the form cannot be submitted because my present server doesn't allow CGI. Instead, I print out the values you filled in in the textarea and return false anyway, so the form isn't submitted.

The onSubmit script does two things: it checks whether you have filled in something in the four text boxes and it gathers name and value of all elements you have selected/checked and prints them out in the textarea below.

Surname
Name
Sex Maschio
Femmina
Birthday AAAA-MM-DD
EMail
Weight KG
Height CM
PhysicalType Corpulento
Normale
Asciutto
Obeso
Address
ZIPCode
City
Province
State
FixPhone
CellPhone

Italian
English
French
Russian