<html><body>
  <?php
   $vastus="";
   switch($vanus){
     case  7: $vastus="liiga ";
     case  8: $vastus.="noor";  break;
     case  9: $vastus="paras"; break;
     case 10: $vastus="vana";  break;
     default: $vastus="tundmatu vanus";
   }
   echo "Tulemus: " . $vastus;
  ?>
  <p>
  Sisesta vanus
  <form>
    <input type="text" name="vanus">
  </form>
  </p>
</body></html>