hello i want to use loop in the drop down menu,i.e. i will like to display the list of years like 1900 to 2004 ,how can i save the size of the code by implementing the loop in this menu
echo '<select name="form">'; for ($i=1900;$i<=2004;$i++) { echo '<option value="'.$i.'">'.$i.'</option>'; } echo '</select>';
Try that