note 23389 rejected from control-structures.for by spic
| From: | spic@php.net | Date: | Wed, 28 Aug 2002 08:37:56 +0000 |
| Subject: | note 23389 rejected from control-structures.for by spic | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-35874@lists.php.net to get a copy of this message | ||
Um die Tage 1-31 in einem option dropdown zu bekommen:
echo "<select name='datum'>\n";
for ($i = 1; $i <= 31; $i++) {
echo "<option value=" . $i . ">" . $i . "</option>\n";
}
echo "</select>\n";
wird wohl funktionieren!
grüße Karl Otto