<div id="main"> <h2>Column 1</h2> <form method="post" action="removecat.php"> <div class="form_description"> <h2>Edit categorie</h2> <p>This is your form description. Click here to edit.</p> <ul > </div> <li id="li_3" > <label class="description" for="sec_id">Drop Down </label> <select class="element select medium" id="sec_id" name="sec_id"> <?php $sections = $SectionM->getSectionList(); for ($y = 1; $y - 1 < sizeof($sections); $y++) { // $categorie = $CategorieM->getCategories($categories[$y]); // $categories[$y] // echo $catID[$y]; //echo "<li><a href='".$catID[$y]."'>".$catID[$y]."</a></li>"; $field1 = $sections[$y]->getSec_id(); $field2 = $sections[$y]->getSec_title; echo "<option value=" . $field1 . ">" . $field2 . "</option>"; } ?> <!-- <option value="2" selected="selected">Second option</option> <option value="3" >Third option</option> -->