Frequently Asked Questions
Dropdown?
-
Dropdown?
Posted on May 21, 2004
Written by
Louise (view more by Louise)
Filed under FAQ, NL-PHPMail, Scripts
How can I use a dropdown menu?
Here’s an example:
<p>What's your favorite color?<br /> <select name="color"> <option selected="selected">Please choose...</option> <option value="blue">blue</option> <option value="red">red</option> <option value="yellow">yellow</option> <option value="orange">orange</option> <option value="green">green</option> <option value="purple">purple</option> <option value="black">black</option> <option value="white">white</option> </select></p>
The name in the select tag is the name of the field, the value is what will get sent to you in the e-mail, the text in between the two option tags is what your visitors will see.
To make a certain option selected by default, add ’selected="selected"’ to the input tag, as shown above.