Monday, 20 July 2009

Check Boxes

HTML check boxes work much like HTML radios except that you can choose more than one at a time.
Here is an example.




Which of the following Star Wars characters are jedi?
Mace Windu
Palpatine
Yoda
Princess Leia
Obi Wan Kenobi






Here is the code for this:


<form method="post" action="mailto:youremail@email.com">
Which of the following Star Wars characters are jedi?
<input type="checkbox" name="StarWars" value="Mace_Windu">Mace Windu
<input type="checkbox" name="StarWars" value="Palpatine">Palpatine
<input type="checkbox" name="StarWars" value="Yoda">Yoda
<input type="checkbox" name="StarWars" value="Princess_Leia">Princess Leia
<input type="checkbox" name="StarWars" value="Obi_Wan_Kenobi">Obi Wan Kenobi
<input type="submit" value="Send">
</form>


Make the necessary changes (don't forget to change the email address) and voilĂ !



Gus

No comments:

Post a Comment