User Tools

Site Tools


eg-259:lecture3

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
eg-259:lecture3 [2013/02/05 08:02] – [Form — method attribute] eechriseg-259:lecture3 [2013/02/05 12:23] (current) – [About the Examples] eechris
Line 40: Line 40:
 See the instructions at [[https://github.com/cpjobling/eg-259-vm]]. See the instructions at [[https://github.com/cpjobling/eg-259-vm]].
  
 +  * Go directly to the examples: http://localhost:4567/eg-259/examples/lecture3 
 +  * Browse the source code on GitHub: [[https://github.com/cpjobling/eg-259-vm/tree/master/web/eg-259/examples/lecture3|eg-259/examples/lecture3]]
  
  
Line 444: Line 445:
     <form action = "/cgi-bin/echo_params.cgi">     <form action = "/cgi-bin/echo_params.cgi">
       <p>       <p>
-        With <code>size="1"</code> (the default+        With <code>size = "4"</code> (specifiedand <code>multiple</code>.  
-        <select name = "groceries"> +        Note use of <code>selected</code> because we always need bread! 
-          <option value = "milk"> milk </option> +        Ctrl-Click (Command-Click on Mac) to make multiple selections. 
-          <option value = "bread"> bread </option> +        <select name = "groceries" size="4" multiple
-          <option value = "eggs"> eggs </option> +          <option value="milk"> milk </option> 
-          <option value = "cheese"> cheese </option>+          <option value="bread" selected> bread </option> 
 +          <option value="eggs"> eggs </option> 
 +          <option value="cheese"> cheese </option>
         </select>         </select>
       </p>       </p>
eg-259/lecture3.1360051338.txt.gz · Last modified: 2013/02/05 08:02 by eechris