Mega Code Archive

 
Categories / Php / Statement
 

Printing a select menu with for()

<? print '<select name="people">'; for ($i = 1; $i <= 10; $i++) {     print "<option>$i</option>"; } print '</select>'; ?>