User Tools

Site Tools


appunti4s:radio_button
radiobutton.htm
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
 
<head>
<meta http-head="content-type" content="text/html;charset=UTF-8" />
   <style>
      fieldset 
      { width:400px; 
      }
 
      fieldset>label  
      {  float:left; position:absolute; left:50px;
      }
 
      fieldset>input 
      { display:block; 
      }
 
   </style>
</head>
<body>
   <h1> titolo </h1>
   <form action="pagina.php" method="get"  >
     <label for="accetto"> s&igrave;, accetto </label>
 
     <input id="accetto" name="var1" type="checkbox" value="1" unchecked />
 
     <fieldset>
        <legend>scegli tra:</legend>
        <label for="primosesso">maschio</label>
        <input id="primosesso" name="var2" type="radio" value="m" />
 
        <label for="secondosesso">femmina</label> 
        <input id="secondosesso" name="var2" type="radio" value="f" />
 
        <label for="terzosesso">non dichiarato</label> 
        <input id="terzosesso" name="var2" type="radio" value="n" />
     </fieldset>
 
     <input value="invia" type="submit" />
 
</form>
 
</body>
 
</html>
appunti4s/radio_button.txt · Last modified: 2020/06/08 22:20 by 127.0.0.1