< >

selecterstellen.php


Quell Code


<?php

$monate = array("Januar", "Februar", "M&auml;rz", "April", "Mai", "Juni", "Juli", "August","September", "Oktober","November","Dezember");
 
$zaehlen = count($monate);

 
echo "<select name='monate'>";
 for ($i = 0; $i < $zaehlen; $i++){ 
      echo "<option value=\"$monate[$i]\">$monate[$i]</option>"; 
}
echo "</select>";

?>