I'm designing a simple website for my football team where we can tell each other if we're able to play next weekend.
For this website I designed a page with radio buttons with the options: Attending, Not Attending, Unknown (standard option). But i'm not sure how to save the information from the radio buttons to the database and how to extract it again.
The code for the radio button page:
(Just for 2 players atm, will extend when I know how to complete the whole idea):
Expand|Select|Wrap|Line Numbers
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
- <html xmlns="http://www.w3.org/1999/xhtml">
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
- <title>Untitled Document</title>
- </head>
- <body>
- <p>Vink aan of je er bij bent of niet: </p>
- <table width="600" border="0">
- <tr>
- <th scope="col">Naam</th>
- <th scope="col"> </th>
- </tr>
- <tr>
- <td>Ale</td>
- <td><form id="form2" name="form2" method="post" action="">
- <label>
- <input type="radio" name="Ale" value="Ja" id="Ale_0" />
- Aanwezig</label>
- <label>
- <input type="radio" name="Ale" value="Nee" id="Ale_1" />
- Afwezig</label>
- <label>
- <input type="radio" name="Ale" value="Geen" id="Ale_2" />
- Onbekend</label>
- </form></td>
- </tr>
- <tr>
- <td>Andy</td>
- <td><form id="form1" name="form1" method="post" action="">
- <label>
- <input type="radio" name="Andy" value="Ja" id="Andy_0" />
- Aanwezig</label>
- <label>
- <input type="radio" name="Andy" value="Nee" id="Andy_1" />
- Afwezig</label>
- <label>
- <input type="radio" name="Andy" value="Geen" id="Andy_2" />
- Onbekend</label>
- </form></td>
- </tr>
- </table>
- <p> </p>
- </body>
- </html>