Harvard Extension School, Fall 2018
CSCI E-12 Fundamentals of Web Site Development

## Radio Buttons

Example 3.5 - Form: radio buttons - Example 3.5 | <form method="get" action="https://cscie12.dce.harvard.edu/echo" enctype="application/x-www-form-urlencoded"> Email Address:<input type="text" name="email" size="50"/><br/> Please send me email updates:<br/><input type="radio" name="sendupdates" value="yes" checked="checked"/>yes<br/><input type="radio" name="sendupdates" value="no"/>no<br/><input type="submit" name="action" value="Proceed"/></form>

- Markup
- Display

    <form method="get" action="https://cscie12.dce.harvard.edu/echo">
    Email Address:
    <input type="text" name="email" size="50"/><br/>Please send me email updates:<br/>
    <input type="radio" name="sendupdates" value="yes" checked="checked"/>yes<br/>
    <input type="radio" name="sendupdates" value="no"/>no<br/>
    <input type="submit" name="action" value="Proceed"/>
    </form>

Email Address:
Please send me email updates:
yes
no

Copyright © David Heitmeyer