• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 4. Error Handling in Forms > Project I: Dynamically Selecting Multiple ...

Project I: Dynamically Selecting Multiple Form Fields

Here is the portion of the HTML page that contains the form named promotion, which holds the newsletter questions. It contains 10 checkboxes named content1 through content10 as well as a button that the user will click on to select all of the checkboxes.

<td class="blkText">
     <table border="0" cellpadding="5" cellspacing="0">
          <tr>
          <td valign="top" align="left" class="blkText">
               <input type="checkbox"  name="content1"
          value="trends">Dirt<br>
               <input type="checkbox"  name="content2"
          value="models">Moeny<br>
               <input type="checkbox"  name="content3"
          value="designers">Trends<br>
               <input type="checkbox"  name="content4"
          value="rage">Haute<br>
               <input type="checkbox"  name="content5"
          value="gossip">Street<br><br>
               <input type="button" value="Select
          All"><br><br></td>
          <td valign="top" align="left" class="blkText">
               <input type="checkbox"  name="content6"
          value="trends">Profiles<br>
               <input type="checkbox"  name="content7"
          value="models">Columns<br>
               <input type="checkbox"  name="content8"
           value="designers">Fashion Calendar<br>
               <input type="checkbox"  name="content9"
           value="rage">Great Buys<br>
               <input type="checkbox"  name="content10"
           value="gossip">Gossip!</td>
     </tr>
</table></td>


					  


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint